Skip to content

Commit

Permalink
Merge pull request #284 from Midburn/beautiful-links
Browse files Browse the repository at this point in the history
Make all links stand out (dark red) and open in a new window
  • Loading branch information
enoodle authored Mar 12, 2018
2 parents e386164 + c73b5eb commit c44b634
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
3 changes: 3 additions & 0 deletions app/assets/stylesheets/camp_card.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ p {

.camp-description{
margin-top: 10px;
a {
color: #a94442;
}
}

.delete-button {
Expand Down
16 changes: 8 additions & 8 deletions app/views/camps/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -131,55 +131,55 @@
<b><%=t :form_summary %></b>
<% @subtitle = (Rails.configuration.x.firestarter_settings['multi_lang_support'] and @camp.en_subtitle.present? and I18n.locale.to_s == 'en')? @camp.en_subtitle : @camp.subtitle %>

<%= simple_format(Rinku.auto_link(@subtitle), class: "auto-#{@detector.direction(@subtitle)}" ) %>
<%= simple_format(Rinku.auto_link(@subtitle, :all, 'target="_blank"'), class: "auto-#{@detector.direction(@subtitle)}" ) %>
</div>

<% if Rails.configuration.x.firestarter_settings["description"] and @camp.description.present? %>
<div class="camp-description">
<b><%=t :form_description_label %></b>
<%= simple_format(Rinku.auto_link(@camp.description), class: "auto-#{@detector.direction(@camp.description)}" ) %>
<%= simple_format(Rinku.auto_link(@camp.description, :all, 'target="_blank"'), class: "auto-#{@detector.direction(@camp.description)}" ) %>
</div>
<% end %>

<% if @camp.about_the_artist.present? %>
<div class="camp-description">
<b><%=t :form_about_the_artist_label %></b>
<%= simple_format(Rinku.auto_link(@camp.about_the_artist), class: "auto-#{@detector.direction(@camp.about_the_artist)}" ) %>
<%= simple_format(Rinku.auto_link(@camp.about_the_artist, :all, 'target="_blank"'), class: "auto-#{@detector.direction(@camp.about_the_artist)}" ) %>
</div>
<% end %>

<% if Rails.configuration.x.firestarter_settings["plan"] and @camp.plan.present? %>
<div class="camp-description">
<b><%=t :form_plan_label %></b>
<%= simple_format(Rinku.auto_link(@camp.plan), class: "auto-#{@detector.direction(@camp.plan)}" ) %>
<%= simple_format(Rinku.auto_link(@camp.plan, :all, 'target="_blank"'), class: "auto-#{@detector.direction(@camp.plan)}" ) %>
</div>
<% end %>

<% if Rails.configuration.x.firestarter_settings["moop"] and @camp.moop.present? %>
<div class="camp-description">
<b><%=t :form_moop_label %></b>
<%= simple_format(Rinku.auto_link(@camp.moop), class: "auto-#{@detector.direction(@camp.moop)}" ) %>
<%= simple_format(Rinku.auto_link(@camp.moop, :all, 'target="_blank"'), class: "auto-#{@detector.direction(@camp.moop)}" ) %>
</div>
<% end %>

<% if Rails.configuration.x.firestarter_settings["recycling"] and @camp.recycling.present? %>
<div class="camp-description">
<b><%=t :form_recycling_label %></b>
<%= simple_format(Rinku.auto_link(@camp.recycling), class: "auto-#{@detector.direction(@camp.recycling)}" ) %>
<%= simple_format(Rinku.auto_link(@camp.recycling, :all, 'target="_blank"'), class: "auto-#{@detector.direction(@camp.recycling)}" ) %>
</div>
<% end %>

<% if Rails.configuration.x.firestarter_settings["budgetplan"] and @camp.budgetplan.present? %>
<div class="camp-description">
<b><%=t :form_budgetplan_label %></b>
<%= simple_format(Rinku.auto_link(@camp.budgetplan), class: "auto-#{@detector.direction(@camp.budgetplan)}" ) %>
<%= simple_format(Rinku.auto_link(@camp.budgetplan, :all, 'target="_blank"'), class: "auto-#{@detector.direction(@camp.budgetplan)}" ) %>
</div>
<% end %>

<% if Rails.configuration.x.firestarter_settings["cocreation"] and @camp.cocreation.present? %>
<div class="camp-description">
<b><%=t :form_cocreation_label %></b>
<%= simple_format(Rinku.auto_link(@camp.cocreation), class: "auto-#{@detector.direction(@camp.cocreation)}" ) %>
<%= simple_format(Rinku.auto_link(@camp.cocreation, :all, 'target="_blank"'), class: "auto-#{@detector.direction(@camp.cocreation)}" ) %>
</div>
<% end %>

Expand Down

0 comments on commit c44b634

Please sign in to comment.