-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
group subscription tags with number of subscribers (#5224)
* group tags with number of subscribers * cleanup * fix codeclimate errors * refactoring the subscriber count range and stats display * fix codeclimate failing lint test * fix indent on stats view
- Loading branch information
1 parent
aba49c4
commit 23ef859
Showing
2 changed files
with
31 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,33 @@ | ||
<div class="col-md-3"> | ||
<h4> About this page </h4> | ||
<p> People subscribe to tags so that they can be updated when a research is posted with the tag they are subscribed to. This page shows the number of subscriptions and subscription rates on different tags. </p> | ||
<h4> About this page </h4> | ||
<p> People subscribe to tags so that they can be updated when a research is posted with the tag they are subscribed to. This page shows the number of subscriptions and subscription rates on different tags. </p> | ||
</div> | ||
<div class="col-md-8 col-md-offset-1"> | ||
<h2>Subscriptions</h2> | ||
</div> | ||
<h2>Subscriptions</h2> | ||
<table class="table inline-grid"> | ||
<tr> | ||
<thead> | ||
<th>Subscriptions</th> | ||
<th>Tags</th> | ||
</thead> | ||
</tr> | ||
<% @tags.each do |range,tags| %> | ||
<tr> | ||
<tbody> | ||
<td> | ||
<%= range * 10 %> - | ||
<%= range * 10 + 9 %> | ||
</td> | ||
<td> | ||
<% tags.each do |tag| %> | ||
<p> | ||
<%= tag[0]%>: | ||
<%=tag[1] %> | ||
</p> | ||
<%end%> | ||
</td> | ||
</tbody> | ||
</tr> | ||
<% end %> | ||
</table> | ||
</div> |