Some template cleanup
This commit is contained in:
parent
fe19848b51
commit
9f89b66df7
|
@ -13,7 +13,7 @@
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
}
|
}
|
||||||
|
|
||||||
.thread .id, .remark .id {
|
.thread .id, .remark .id, .thread .flag, nav .login {
|
||||||
float: right;
|
float: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,10 +10,12 @@
|
||||||
<div>
|
<div>
|
||||||
<%= link_to List => threads_list => {list_page => 1} %>
|
<%= link_to List => threads_list => {list_page => 1} %>
|
||||||
<%= link_to New => 'post_thread' %>
|
<%= link_to New => 'post_thread' %>
|
||||||
<% unless (is_mod) { =%>
|
|
||||||
<%= link_to Login => 'mod_login' %>
|
|
||||||
<% } =%>
|
|
||||||
<%= link_to RSS => threads_feed => {format => 'rss'} %>
|
<%= link_to RSS => threads_feed => {format => 'rss'} %>
|
||||||
|
<% unless (is_mod) { =%>
|
||||||
|
<span class="login">
|
||||||
|
<%= link_to Login => 'mod_login' %>
|
||||||
|
</span>
|
||||||
|
<% } =%>
|
||||||
</div>
|
</div>
|
||||||
<% if (is_mod) { =%>
|
<% if (is_mod) { =%>
|
||||||
<div>
|
<div>
|
||||||
|
|
|
@ -44,7 +44,10 @@
|
||||||
<div class="remarks">
|
<div class="remarks">
|
||||||
<h3>Last Remark</h3>
|
<h3>Last Remark</h3>
|
||||||
<article class="remark">
|
<article class="remark">
|
||||||
<nav class="id">#<%= $last_remark_id %></nav>
|
<nav class="id">
|
||||||
|
<%= link_to "#$last_remark_id",
|
||||||
|
single_remark => {remark_id => $last_remark_id} %>
|
||||||
|
</nav>
|
||||||
<h4 class="date"><%= $last_remark->{'date'} %></h4>
|
<h4 class="date"><%= $last_remark->{'date'} %></h4>
|
||||||
<h5 class="author"><%= $last_remark->{'author'} %></h5>
|
<h5 class="author"><%= $last_remark->{'author'} %></h5>
|
||||||
<p class="body"><%= $last_remark->{'body'} %></p>
|
<p class="body"><%= $last_remark->{'body'} %></p>
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
<h4 class="date"><%= $remark->{'date'} %></h4>
|
<h4 class="date"><%= $remark->{'date'} %></h4>
|
||||||
<h5 class="author"><%= $remark->{'author'} %></h5>
|
<h5 class="author"><%= $remark->{'author'} %></h5>
|
||||||
<p class="body"><%= $remark->{'body'} %></p>
|
<p class="body"><%= $remark->{'body'} %></p>
|
||||||
<nav>
|
<nav class="flag">
|
||||||
<%= link_to Flag => flag_remark => {remark_id => $remark->{'id'}} %>
|
<%= link_to Flag => flag_remark => {remark_id => $remark->{'id'}} %>
|
||||||
</nav>
|
</nav>
|
||||||
</article>
|
</article>
|
||||||
|
|
|
@ -8,24 +8,25 @@
|
||||||
<%= link_to "#$thread->{'id'}",
|
<%= link_to "#$thread->{'id'}",
|
||||||
single_thread => {thread_id => $thread->{'id'}} %>
|
single_thread => {thread_id => $thread->{'id'}} %>
|
||||||
</nav>
|
</nav>
|
||||||
<h3 class="title"><%= $thread->{'title'} %></h3>
|
<h3 class="title">
|
||||||
|
<%= link_to single_thread => {thread_id => $thread->{'id'}}, begin %>
|
||||||
|
<%= $thread->{'title'} %>
|
||||||
|
<% end %>
|
||||||
|
</h3>
|
||||||
<h4 class="date"><%= $thread->{'date'} %></h4>
|
<h4 class="date"><%= $thread->{'date'} %></h4>
|
||||||
<h5 class="author"><%= $thread->{'author'} %></h5>
|
<h5 class="author"><%= $thread->{'author'} %></h5>
|
||||||
<p class="body"><%= truncate_text $thread->{'body'} %></p>
|
<p class="body"><%= truncate_text $thread->{'body'} %></p>
|
||||||
<nav class="remarks">
|
<nav>
|
||||||
<%= link_to Remark => post_remark => {thread_id => $thread->{'id'}} %>
|
<%= link_to Remark => post_remark => {thread_id => $thread->{'id'}} %>
|
||||||
<%= link_to url_for(single_thread => {thread_id => $thread->{'id'}})
|
<%= link_to url_for(single_thread => {thread_id => $thread->{'id'}})
|
||||||
->fragment('remarks'), begin %>
|
->fragment('remarks'), begin %>
|
||||||
(<%= $thread->{'remark_count'} %> remarks)
|
(<%= $thread->{'remark_count'} %> remarks)\
|
||||||
<% end %>
|
<% end =%>
|
||||||
</nav>
|
<%= link_to Bump => bump_thread => {thread_id => $thread->{'id'}} %>
|
||||||
<nav class="bumps">
|
(<%= $thread->{'bump_tally'} %> bumps)
|
||||||
<%= link_to bump_thread => {thread_id => $thread->{'id'}}, begin %>
|
<span class="flag">
|
||||||
Bump (<%= $thread->{'bump_tally'} %> bumps)
|
<%= link_to Flag => flag_thread => {thread_id => $thread->{'id'}} %>
|
||||||
<% end %>
|
</span>
|
||||||
</nav>
|
|
||||||
<nav>
|
|
||||||
<%= link_to Flag => flag_thread => {thread_id => $thread->{'id'}} %>
|
|
||||||
</nav>
|
</nav>
|
||||||
</article>
|
</article>
|
||||||
<% } =%>
|
<% } =%>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user