Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

Commit

Permalink
Show share titles if there are shares on the page
Browse files Browse the repository at this point in the history
  • Loading branch information
Tuuleh authored and vincemtnz committed Jun 21, 2018
1 parent 19d8794 commit cdb27ee
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/views/pages/_local_share_analytics_header.slim
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
h3#champaign-shares-header.hidden-irrelevant = "Shares managed by Champaign:"
h3 id='champaign-shares-header' class=(hide_title ? 'hidden-irrelevant': '') = "Shares managed by Champaign:"
th
th = "Content"
th
Expand Down
7 changes: 3 additions & 4 deletions app/views/pages/_shares_editor.slim
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,16 @@

table.table.shares-editor__existing__shareprogress
thead.shares-editor__stats-heading.hidden-closed
= render 'sp_share_analytics_header'
= render 'sp_share_analytics_header', hide_title: @sp_variations.blank?

tbody
- @sp_variations.each do |variation|
= render variation, page: @page

= render 'links_to_share_progress'
= render 'links_to_share_progress'

table.table.shares-editor__existing__champaign
thead.shares-editor__stats-heading.hidden-closed
= render 'local_share_analytics_header'
= render 'local_share_analytics_header', hide_title: @local_variations.blank?

tbody
- @local_variations.each do |variation|
Expand Down
2 changes: 1 addition & 1 deletion app/views/pages/_sp_share_analytics_header.slim
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
h3#share-progress-shares-header.hidden-irrelevant = "Shares managed by ShareProgress:"
h3 id='share-progress-shares-header' class=(hide_title ? 'hidden-irrelevant': '') = "Shares managed by ShareProgress:"
th
th = "Content"
th
Expand Down

0 comments on commit cdb27ee

Please sign in to comment.