Skip to content

Commit e59fdc2

Browse files
committed
Link to Github project
1 parent 690f55a commit e59fdc2

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

SourceCodeReader.Web/Content/Site.css

+4
Original file line numberDiff line numberDiff line change
@@ -146,4 +146,8 @@ body {
146146
.findresultpane
147147
{
148148
height: 150px;
149+
}
150+
151+
a.versionInfo, a.versionInfo:hover, a.versionInfo:active{
152+
color: #fff;
149153
}

SourceCodeReader.Web/Scripts/App/Application.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,11 @@ function projectViewModel(name, username, path) {
3636
self.files = ko.observableArray();
3737
self.file = ko.observable();
3838
self.inProgress = ko.observable(true);
39-
self.versionInfo = ko.observable();
39+
self.versionInfo = ko.observable();
40+
41+
self.projectGithubUrl = ko.computed(function () {
42+
return 'https://github.com/' + self.username() + '/' + self.name();
43+
});
4044

4145
// build the url from the path provided
4246
self.buildUrl = function (path) {

SourceCodeReader.Web/Views/Home/Index.cshtml

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
</div>
3838
<div data-bind="with: project, visible: isReady">
3939
<div class="projectheader dockrow ">
40-
<h3><span data-bind="text: username"></span>/<span data-bind="text: name"></span> <span class="label label-important" data-bind="text: versionInfo"></span></h3>
40+
<h3><span data-bind="text: username"></span>/<span data-bind="text: name"></span> <span class="label label-important"><a data-bind="text: versionInfo, attr: { href: projectGithubUrl}" class="versionInfo" target="_blank"></a></span></h3>
4141
<ul class="breadcrumb" data-bind="foreach: breadcrumbs">
4242
<li data-bind="visible: active">
4343
<a data-bind="text: text, attr: {href: url}"></a> <span class="divider">/</span>

0 commit comments

Comments
 (0)