Skip to content

Commit

Permalink
Update enclosure index view: don't show id
Browse files Browse the repository at this point in the history
  • Loading branch information
kumabook committed Jun 30, 2017
1 parent cd0c6b8 commit aef9420
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions app/views/enclosures/index.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,8 @@ table.table.table-striped
th
- if @issue.present?
th engagement
th id
th provider
th identifier
th title
th provider
th likes
th saves
th plays
Expand All @@ -61,16 +59,15 @@ table.table.table-striped
- save_path = public_send save_path_method , enclosure
- plays_path = public_send plays_path_method, enclosure
- content = enclosure.content || {}
- provider_id = enclosure.content.nil? ? "Unknown" : "#{content["provider"]}/#{content["identifier"]}"
- if @issue.present?
- enclosure_issue = @enclosure_issues.select {|ei| ei.enclosure_id == enclosure.id }.first
tr
td.resource-menu data-id=enclosure.id data-resource-id="#{@type.downcase}/#{enclosure.id}"
- if @issue.present?
td = enclosure_issue.engagement
td = link_to enclosure.id, item_path
td = content["provider"]
td = link_to content["identifier"], content["url"]
td = "#{content["title"]}"
td = link_to content["title"] || enclosure.id, item_path
td = link_to provider_id, content["url"]
td = "#{enclosure.likes_count || 0} likes"
td = "#{enclosure.saved_count || 0} saves"
td = "#{enclosure.play_count || 0} plays"
Expand Down

0 comments on commit aef9420

Please sign in to comment.