This repository has been archived by the owner on Aug 15, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added ability to link a given statistic to an url associated with it
- Loading branch information
Josh Adams
committed
Jan 27, 2009
1 parent
4fe98fa
commit c87a4a0
Showing
4 changed files
with
11 additions
and
6 deletions.
There are no files selected for viewing
9 changes: 7 additions & 2 deletions
9
app/views/admin/default_dashboard_boxes/_at_a_glance.html.erb
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,8 +1,13 @@ | ||
<ul class='at-a-glance'> | ||
<% Ansuz::PluginManagerInstance.at_a_glance_entries.each do |entry| %> | ||
<li> | ||
<em><%= entry[1].call %></em> | ||
<%= entry[0] %> | ||
<em><%= entry[2].call %></em> | ||
<% if entry[1] # they provided an url | ||
%> | ||
<%= link_to entry[0], entry[1] %> | ||
<% else %> | ||
<%= entry[0] %> | ||
<% end %> | ||
</li> | ||
<% end %> | ||
</ul> |
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
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