-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathindex.html.erb
More file actions
46 lines (37 loc) · 1.07 KB
/
Copy pathindex.html.erb
File metadata and controls
46 lines (37 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<% title = l(@project ? :label_paste_plural : :label_paste_all) %>
<% html_title title %>
<% content_for :header_tags do %>
<style type="text/css">
.paste .timestamp {
font-size: 90%;
}
</style>
<% end %>
<div class="contextual">
<%= link_to_new_paste %>
</div>
<h2><%=h title %></h2>
<% if @pastes.empty? %>
<p class="nodata"><%= l(:label_no_data) %></p>
<% else %>
<% @pastes.each do |paste| %>
<p class="paste">
<%= paste_timestamp(paste) %> –
<%= link_to_paste paste %> –
<% unless @project %>
<%= link_to_project paste.project %> –
<% end %>
<%= pastebin_language_name(paste.lang) %> –
<code><%=h paste.short_text %></code><br>
<%= render :partial => "authorship", :locals => { :paste => paste } %>
<%= manage_paste_links(paste) %>
</p>
<% end %>
<p class="pagination">
<%= pagination_links_full @pastes_pages, @pastes_count %>
</p>
<% end %>
<% other_formats_links do |f| %>
<%= f.link_to 'Atom', :url => { :project_id => @project,
:key => User.current.rss_key } %>
<% end %>