Sha256: 1b327c9ee8abddc66749a9743989b635b190e0721b6f2d48032fb27e592eeaa1

Contents?: true

Size: 920 Bytes

Versions: 8

Compression:

Stored size: 920 Bytes

Contents

<%- if manifestation.bookmarks.exists? -%>
  <ul>
    <%- manifestation.bookmarks.each do |bookmark| -%>
      <% if bookmark.shared? %>
        <li><%= link_to bookmark.user.username, bookmark -%>
          <%- bookmark.tags.each do |tag| -%>
            [<%= link_to tag.name, manifestations_path(tag: tag.name) -%>]
          <%- end -%>
          <%= bookmark.note -%>
          <%- if user_signed_in? and current_user == bookmark.user -%>
            <%= link_to image_tag('icons/page_edit.png', alt: t('page.edit'), size: '16x16', class: 'enju_icon'), edit_bookmark_path(bookmark) -%>
          <%- end -%>
        </li>
      <%- end -%>
    <%- end -%>
  </ul>
<%- else -%>
  <p>
    <%= t('bookmark.not_bookmarked') -%>
    <%- if user_signed_in? -%>
      <%= link_to t('bookmark.add_to_my_bookmark'), new_bookmark_path(bookmark: {url: manifestation_url(manifestation)}) -%>
    <%- end -%>
  </p>
<%- end -%>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
enju_bookmark-0.3.2 app/views/manifestations/_bookmarks_for_this_manifestation.html.erb
enju_bookmark-0.3.1 app/views/manifestations/_bookmarks_for_this_manifestation.html.erb
enju_bookmark-0.3.0 app/views/manifestations/_bookmarks_for_this_manifestation.html.erb
enju_bookmark-0.3.0.beta.1 app/views/manifestations/_bookmarks_for_this_manifestation.html.erb
enju_bookmark-0.2.2 app/views/manifestations/_bookmarks_for_this_manifestation.html.erb
enju_bookmark-0.2.1 app/views/manifestations/_bookmarks_for_this_manifestation.html.erb
enju_bookmark-0.2.0 app/views/manifestations/_bookmarks_for_this_manifestation.html.erb
enju_bookmark-0.2.0.beta.5 app/views/manifestations/_bookmarks_for_this_manifestation.html.erb