upgraded jquery, restyled post wiki excerpts

This commit is contained in:
albert
2012-01-13 17:40:01 -05:00
parent 2c6f69e309
commit 08cfb3d637
14 changed files with 49 additions and 66 deletions

View File

@@ -2,25 +2,14 @@
- post_set
-->
<% if post_set.has_wiki? %>
<div id="wiki-page-excerpt">
<h1>Wiki</h1>
<div id="wiki-page-excerpt">
<% if post_set.wiki_page %>
<div class="prose">
<%= format_text(post_set.wiki_page.presenter.excerpt) %>
<div id="hide-or-show-wiki-page-excerpt">
<span id="hide-wiki-page-excerpt" class="ui-icon ui-icon-triangle-1-n"></span>
<span id="show-wiki-page-excerpt" class="ui-icon ui-icon-triangle-1-s"></span>
<p>Read the <%= link_to "full article", wiki_page_path(post_set.wiki_page.id) %>.</p>
</div>
<div id="wiki-page-excerpt-content">
<% if post_set.wiki_page %>
<div class="prose">
<%= format_text(post_set.wiki_page.presenter.excerpt) %>
<p>Read the <%= link_to "full article", wiki_page_path(post_set.wiki_page.id) %>.</p>
</div>
<% else %>
<p>There is currently no wiki page for the tag "<%= post_set.tag_string %>". You can <%= link_to "create one", new_wiki_page_path(:wiki_page => {:title => post_set.tag_string}) %>.</p>
<% end %>
</div>
</div>
<% end %>
<% else %>
<p>There is currently no wiki page for the tag "<%= post_set.tag_string %>". You can <%= link_to "create one", new_wiki_page_path(:wiki_page => {:title => post_set.tag_string}) %>.</p>
<% end %>
</div>