Sha256: 553685cb5e8f2917d5ab935f6c56ef3f3ad562a86eddf855e4e71dd14e2364c4

Contents?: true

Size: 1.77 KB

Versions: 17

Compression:

Stored size: 1.77 KB

Contents

<div id="content_detail" class="ui-corner-all">
<h1 class="title"><%= t('page.listing', :model => t('activerecord.models.bookmark')) -%></h1>
<div id="content_list">
  <h2 class="resource_title">
    <%= t('bookmark.user_bookmark', :login_name => @user.username) -%>
  </h2>

<div class="search_form">
  <%= form_for :bookmarks, :url => user_bookmarks_path(@user), :html => {:method => 'get'} do -%>
    <p>
      <%= t('page.search_term') -%>: <%= search_field_tag 'query', h(@query), {:id => 'search_form_top', :class => 'search_form', :placeholder => t('page.search_term')} -%>
      <%= submit_tag t('page.search') -%>
    </p>
  <%- end -%>
</div>

<table class="index">
  <tr>
    <th><%= t('activerecord.models.user') -%></th>
    <th><%= t('activerecord.models.bookmark') -%></th>
    <th><%= t('page.created_at') -%></th>
    <th></th>
  </tr>

<%- @bookmarks.each do |bookmark| -%>
  <tr class="line<%= cycle("0", "1") -%>">
    <td><%= link_to bookmark.user.username, bookmark.user -%></td>
    <td>
      <%= render 'manifestations/show_index', :manifestation => bookmark.manifestation -%>
    </td>
    <td><%= l(bookmark.created_at) -%></td>
    <td>
      <%- if can? :destroy, bookmark -%>
        <%= link_to t('page.destroy'), bookmark, :confirm => t('page.are_you_sure'), :method => :delete -%>
      <%- end -%>
    </td>
  </tr>
<%- end -%>
</table>

<%= will_paginate(@bookmarks) -%>

</div>
</div>

<div id="submenu" class="ui-corner-all">
  <%- if user_signed_in? -%>
    <h4><%= t('page.bookmarklet') -%></h4>
    <ul>
      <li><a href="javascript:window.location.href='<%= new_bookmark_url -%>?bookmark[url]='+encodeURIComponent(location.href)+'&bookmark[title]='+encodeURIComponent(document.title);"><%= t('bookmark.add_to_library_bookmark') -%></a></li>
    </ul>
  <%- end -%>
</div>

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
enju_bookmark-0.0.19 app/views/bookmarks/_index_user.html.erb
enju_bookmark-0.0.18 app/views/bookmarks/_index_user.html.erb
enju_bookmark-0.0.17 app/views/bookmarks/_index_user.html.erb
enju_bookmark-0.0.16 app/views/bookmarks/_index_user.html.erb
enju_bookmark-0.0.15 app/views/bookmarks/_index_user.html.erb
enju_bookmark-0.0.14 app/views/bookmarks/_index_user.html.erb
enju_bookmark-0.0.13 app/views/bookmarks/_index_user.html.erb
enju_bookmark-0.0.12 app/views/bookmarks/_index_user.html.erb
enju_bookmark-0.0.11 app/views/bookmarks/_index_user.html.erb
enju_bookmark-0.0.10 app/views/bookmarks/_index_user.html.erb
enju_bookmark-0.0.9 app/views/bookmarks/_index_user.html.erb
enju_bookmark-0.0.8 app/views/bookmarks/_index_user.html.erb
enju_bookmark-0.0.7 app/views/bookmarks/_index_user.html.erb
enju_bookmark-0.0.6 app/views/bookmarks/_index_user.html.erb
enju_bookmark-0.0.5 app/views/bookmarks/_index_user.html.erb
enju_bookmark-0.0.4 app/views/bookmarks/_index_user.html.erb
enju_bookmark-0.0.3 app/views/bookmarks/_index_user.html.erb