This commit is contained in:
albert
2011-05-29 03:47:06 -04:00
parent 969185ad24
commit 9e287726e3
18 changed files with 237 additions and 137 deletions

View File

@@ -4,16 +4,22 @@
-->
<div id="wiki-page-excerpt">
<span class="ui-icon ui-icon-closethick" id="close-wiki-page-excerpt"></span>
<h1>Wiki</h1>
<div id="hide-or-show-wiki-page-excerpt">
<span id="hide-wiki-page-excerpt">(hide)</span>
<span id="show-wiki-page-excerpt">(show)</span>
</div>
<% if wiki_page %>
<div id="wiki-page-excerpt" class="prose">
<%= format_text(wiki_page.presenter.excerpt) %>
<div id="wiki-page-excerpt-content">
<% if wiki_page %>
<div class="prose">
<%= format_text(wiki_page.presenter.excerpt) %>
<p>Read the <%= link_to "full article", wiki_page_path(wiki_page.id) %>.</p>
</div>
<% else %>
<p>There is currently no wiki page for the tag "<%= tag %>". You can <%= link_to "create one", new_wiki_page_path(:wiki_page => {:title => tag}) %>.</p>
<% end %>
<p>Read the <%= link_to "full article", wiki_page_path(wiki_page.id) %>.</p>
</div>
<% else %>
<p>There is currently no wiki page for the tag "<%= tag %>". You can <%= link_to "create one", new_wiki_page_path(:wiki_page => {:title => tag}) %>.</p>
<% end %>
</div>
</div>