Skip to content

Commit

Permalink
feat: Another small tweak of Publication web pages
Browse files Browse the repository at this point in the history
  • Loading branch information
martintomas committed Oct 24, 2023
1 parent 1c6d3bc commit ca0b185
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
6 changes: 3 additions & 3 deletions app/assets/stylesheets/tpi/_publications.scss
Original file line number Diff line number Diff line change
Expand Up @@ -259,10 +259,10 @@ $max-lines: 3;
}

&__content-type {
color: $grey-dark;
margin-top: 10px;
color: $blue;
margin: 0 0 10px 0;
font-size: $size-7;
border: 1px solid rgba($grey-dark, 0.5);
border: 1px solid rgba($blue, 0.5);
padding-left: $size-7;
padding-right: $size-7;
display: inline-block;
Expand Down
17 changes: 10 additions & 7 deletions app/views/tpi/publications/_list.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@
<% end %>
</div>
</div>

<div class="publication__content-type">
<% if publication.is_a?(NewsArticle) %>
<%= publication.is_insight? ? 'Insights' : 'News' %>
<% else %>
Publications
<% end %>
</div>

<p class="updated_at "><%= publication.publication_date.strftime('%d/%m/%Y') %></p>

<div class="content__message">
Expand All @@ -29,13 +38,7 @@
<% end %>
</p>
</div>
<div class="publication__content-type">
<% if publication.is_a?(NewsArticle) %>
<%= publication.is_insight? ? 'Insights' : 'News' %>
<% else %>
Publications
<% end %>
</div>

<% if publication.keywords.any? || publication.tpi_sectors.any? %>
<div class="publication__tags">
<% publication.tags_and_sectors.each do |tag| %>
Expand Down

0 comments on commit ca0b185

Please sign in to comment.