Skip to content

Commit e868df6

Browse files
committed
Improve index presentation.
1 parent dba3449 commit e868df6

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

app/views/pastes/index.html.erb

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
<% title = l(:label_paste_plural) %>
2-
32
<% html_title title %>
43

54
<% content_for :header_tags do %>
65
<style type="text/css">
7-
.paste .timestamp {
8-
font-size: 90%;
6+
.paste {
7+
margin-bottom: 1.5em;
98
}
109
</style>
1110
<% end %>
@@ -16,19 +15,18 @@
1615
<p class="nodata"><%= l(:label_no_data) %></p>
1716
<% else %>
1817
<% @pastes.each do |paste| %>
19-
<p class="paste">
20-
<%= paste_timestamp(paste) %>&nbsp;&ndash;
18+
<div class="paste">
2119
<%= link_to_paste paste %>&nbsp;&ndash;
2220
<% unless @project %>
2321
<%= link_to_project paste.project %>&nbsp;&ndash;
2422
<% end %>
25-
<%= pastebin_language_name(paste.lang) %>&nbsp;&ndash;
26-
<code><%=h paste.short_text %></code><br>
27-
28-
<%= render :partial => "authorship", :locals => { :paste => paste } %>
29-
23+
<%= pastebin_language_name(paste.lang) %><br>
24+
<div class="box">
25+
<pre><%=h paste.short_text %></pre>
26+
</div>
27+
<%= render :partial => "authorship", :locals => { :paste => paste } %><br>
3028
<%= manage_paste_links(paste) %>
31-
</p>
29+
</div>
3230
<% end %>
3331

3432
<p class="pagination">

0 commit comments

Comments
 (0)