Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
hiksa committed Aug 26, 2015
1 parent 115a248 commit 4495375
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
1 change: 0 additions & 1 deletion Source/Client/Showcase.Client.App/Content/main.css
Expand Up @@ -510,7 +510,6 @@ li.token-input-selected-token-showcase span {
border-radius: 4px;
padding: 2px 20px !important;
font-weight: bold !important;
/*opacity: 0.7 !important;*/
}

.break-word {
Expand Down
Expand Up @@ -17,6 +17,8 @@
"#99cc66", "#FF5A5E", "#5AD3D1", "#FFC870", "#9933cc", "#9FA1E3", "#BED435", ""
];

var tagIds = {};

scope.$watch('stats', function (stats) {
if (stats && stats.length && stats.length > 0) {
var data = [];
Expand All @@ -28,6 +30,8 @@
color: colors[i],
highlight: highlights[i]
});

tagIds[stats[i].tag] = stats[i].tagId;
}

var options = {
Expand Down Expand Up @@ -68,7 +72,7 @@
var activePoints = chart.getSegmentsAtEvent(evt);
if (activePoints[0]) {
var url = '/projects/search';
$location.path(url).search('tag', activePoints[0].label);
$location.path(url).search('tag', tagIds[activePoints[0].label]);
scope.$apply();
}
});
Expand Down
Expand Up @@ -31,7 +31,7 @@ <h4 class="margin-bottom-0"><a href="/projects/{{project.id}}/{{project.titleUrl
</p>
<div class="margin-bottom-10">
<span ng-repeat="collaborator in project.collaborators" class="font-size-09em display-inline-block">
<a href="/users/{{collaborator.username}}" class="margin-bottom-2 margin-right-10"><img width="24" height="24" class="margin-right-5 img-thumbnail" ng-src="{{collaborator.avatarUrl}}" />{{collaborator.username}}</a>
<a href="/users/{{collaborator.userName}}" class="margin-bottom-2 margin-right-10"><img width="24" height="24" class="margin-right-5 img-thumbnail" ng-src="{{collaborator.avatarUrl}}" />{{collaborator.userName}}</a>
</span>
</div>
<div class="margin-top-0 font-size-09em">
Expand Down
Expand Up @@ -12,6 +12,8 @@ public class CountByTagModel : IHaveCustomMappings
{
public string Tag { get; set; }

public int TagId { get; set; }

public int Count { get; set; }

public bool IsUserSubmitted { get; set; }
Expand All @@ -21,6 +23,7 @@ public void CreateMappings(IConfiguration configuration)
configuration.CreateMap<Tag, CountByTagModel>()
.ForMember(m => m.IsUserSubmitted, opt => opt.MapFrom(t => t.Type == TagType.UserSubmitted))
.ForMember(m => m.Tag, opt => opt.MapFrom(t => t.Name))
.ForMember(m => m.TagId, opt => opt.MapFrom(t => t.Id))
.ForMember(m => m.Count, opt => opt.MapFrom(t => t.Projects.Count()));
}
}
Expand Down

0 comments on commit 4495375

Please sign in to comment.