-
Notifications
You must be signed in to change notification settings - Fork 482
/
index.html.erb
executable file
·46 lines (42 loc) · 1.19 KB
/
index.html.erb
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
<!--SEARCHBROWSE descriptive page name and system messages, descriptions, and instructions.-->
<h2 class="heading">
<% if @most_recent_bookmarks %>
<%= ts("Recent") %>
<% elsif @user %>
<%= @user.login %>'s
<% else %>
<%= ts("Listing") %>
<% end %>
<% if params[:recs_only] %>
<%= ts("Recs") %>
<% else %>
<%= ts("Bookmarks") %>
<% end %>
</h2>
<!-- /descriptions-->
<!--subnav-->
<ul class="navigation actions" role="navigation">
<% if current_user.is_a?(User) %>
<li><%= link_to ts("Bookmark External Work"), new_external_work_path %></li>
<% end %>
<li>
<%= span_if_current(ts("View All Bookmarks"), url_for(params.merge :recs_only => false), params[:recs_only].blank?) %>
</li>
<li>
<%= span_if_current ts("View Recs Only"), url_for(params.merge :recs_only => true) %>
</li>
<% if params[:tag_id] %>
<%= taggable_list(params[:tag_id], "bookmarks") %>
<% end %>
</ul>
<!--/subnav-->
<!--main content-->
<h3 class="landmark heading">List of Bookmarks</h3>
<ol class="bookmark index">
<%= render 'bookmarks/bookmarks' %>
</ol>
<!-- /content-->
<div id="dynamic-bookmark" class="dynamic hidden"></div>
<!--subnav-->
<%= will_paginate @bookmarks %>
<!-- /subnav-->