Sha256: eb8419a2f5deb7b2fbe4a21b295e5bd1c9c124d481787035583228356c2adb50

Contents?: true

Size: 1.48 KB

Versions: 2

Compression:

Stored size: 1.48 KB

Contents

        <div class="tab-pane active" id="contributions">
		      <i class="icon-trophy trophy-on" ></i> <strong>Highlighted Files</strong>
		      <% if @trophies.count > 0 %>
		        <table>
		        <% @trophies.each do |t| %>
              <tr id="trophyrow_<%= Sufia::Noid.noidify(t.pid) %>">   
		          <% if t.image? || t.pdf? %>
		            <% temp_thumbnail_path = sufia.download_path(t) + "?datastream_id=thumbnail" %>
		            <% temp_href = "<a href=\"" + sufia.download_path(t) + "\"> <img src=\"" + temp_thumbnail_path + "\" width=\"90\" alt=\"Download the full-sized image\"/></a>" %>
		          <% else %>
		            <% temp_href = "<a href=\"" + sufia.download_path(t) + "\"> <img src=\"/assets/default.png\"  width=\"90\" alt=\"Download file\"/></a>" %>
		          <% end %>                                 
		          <td>  
                <%= temp_href.html_safe() %> 
		          </td>
		          <td>
		            <%= link_to display_title(t), sufia.generic_file_path(t) %>
                <% if current_user == @user %>
                  <%= link_to raw("<i class='trophy-on icon-remove'></i>"),"", class: 'trophy-on trophy-class', title: "Click to remove from Highlighted files.", id: Sufia::Noid.noidify(t.pid),  remote: true, data: {removerow: "true" }  %>
                <% end %>
		          </td>
		          </tr>
		        <% end %>
		        </table>
		      <% else %>
		        <%= @user.name %> has no highlighted files.
		      <% end %>
        </div>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sufia-3.6.1 app/views/users/_contributions.html.erb
sufia-3.6.0 app/views/users/_contributions.html.erb