Skip to content

Commit

Permalink
Add back the <span> around the favorites count
Browse files Browse the repository at this point in the history
Tests and, more importantly, JS which updates the count relies on the
<span>.  Keeping it necessitates adjusting CSS to preserve font-weight.
  • Loading branch information
tsibley committed Feb 3, 2014
1 parent 4169acb commit 8997d07
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions root/inc/favorite.html
Expand Up @@ -4,8 +4,8 @@
<input type="hidden" name="release" value="<% module.release || module.name %>">
<input type="hidden" name="author" value="<% module.author %>">
<input type="hidden" name="distribution" value="<% module.distribution %>">
<button type="submit" class="favorite<% IF module.favorites || release.favorites %> highlight<% END %><% IF module.myfavorite %> active<% END %>"><% module.favorites || release.favorites %> ++</button>
<button type="submit" class="favorite<% IF module.favorites || release.favorites %> highlight<% END %><% IF module.myfavorite %> active<% END %>"><span><% module.favorites || release.favorites %></span> ++</button>
</form>
<% ELSE -%>
<a href="" onclick="alert('Please sign in to add favorites'); return false" class="favorite<% IF module.favorites || release.favorites %> highlight<% END %>">
<% module.favorites || release.favorites %> ++</a><% END -%>
<a href="" onclick="alert('Please sign in to add favorites'); return false" class="favorite<% IF module.favorites || release.favorites %> highlight<% END %>"><span>
<% module.favorites || release.favorites %></span> ++</a><% END -%>
4 changes: 4 additions & 0 deletions root/static/css/style.css
Expand Up @@ -96,6 +96,10 @@ button.favorite, a.favorite {
font-weight: normal;
}

.breadcrumbs .favorite span {
font-weight: normal;
}

button.favorite {
min-width: 35px;
cursor: pointer;
Expand Down

0 comments on commit 8997d07

Please sign in to comment.