forked from publify/publify
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Apparently, nesting a crapload of content_tag ... do doesn't work as expected, so I'm using a partial instead of a helper here.
- Loading branch information
Frédéric de Villamil
committed
Aug 29, 2013
1 parent
cc71bcc
commit 1539b5a
Showing
4 changed files
with
23 additions
and
22 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
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<div> | ||
<%= link_to_function(_("Show help on Publify macros") + " (+/-)", update_page { |page| page.visual_effect(:toggle_blind, "macros", :duration => 0.2) }) %> | ||
<table class='table table-striped' id='macros' style='display: none'> | ||
<thead> | ||
<tr> | ||
<th><%= _("Name") %></th> | ||
<th><%= _("Description") %></th> | ||
<th><%= _("Tag") %></th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<% for macro in @macros.sort_by { |f| f.short_name } %> | ||
<tr> | ||
<td><%= macro_help_popup(macro, macro.display_name) %></td> | ||
<td><%= h(macro.description) %></td> | ||
<td><code><<%= h(macro.short_name) %>></code></td> | ||
</tr> | ||
<% end %> | ||
</tbody> | ||
</table> | ||
</div> |