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

Commit

Permalink
Fixing footer labels as described in issue #131 (#133)
Browse files Browse the repository at this point in the history
Fixing footer labels
  • Loading branch information
alexstrilets authored and weiweishi committed Aug 4, 2017
1 parent b1730e4 commit 741e85c
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 15 deletions.
16 changes: 8 additions & 8 deletions app/assets/stylesheets/bootstrap_and_overrides.css.less
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
@grey_darker_colour: #515151;
@background_lighter_colour: #f9f9f9;
@background_darker_colour: #d1d5d4;
@green_colour: #346536;
@green_colour: #346536;
@red_colour: #ec563c;
@red_lighter_colour: #EE6B54;
@white_colour: #ffffff;
Expand Down Expand Up @@ -723,7 +723,7 @@ table.dmp_table tbody td.dmp_td_border{
table.dmp_table tbody td.dmp_border_bottom{
border-bottom: 1px solid @grey_very_light_colour;
padding: 0px 0px 0px 5px;

}
table.dmp_table a.dmp_table_link, table.dmp_table a.dmp_table_link:active, table.dmp_table a.dmp_table_link:visited{
text-decoration: none !important;
Expand Down Expand Up @@ -756,7 +756,7 @@ table.dmp_table a.dmp_table_link:hover{
padding: 20px 20px 20px 20px;
}

/* removed hidding this dropdowns as we
/* removed hidding this dropdowns as we
temporarily removed funder dropdown. Wshi - Feb 09, 2015
#institution-control-group{
display:none;
Expand Down Expand Up @@ -1399,7 +1399,7 @@ ul.question_right_column_ul li.active a:focus {
border-bottom-color: transparent;
border-bottom-left-radius:0px;
border-bottom-right-radius:0px;

}

/* being used in the accordion on the question right column */
Expand All @@ -1419,10 +1419,10 @@ p.accordion_label{
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
border-top-left-radius:0px;
border-top-left-radius:0px;
padding: 10px 10px 5px 10px;
margin-top: 0px;
}
}



Expand Down Expand Up @@ -1623,7 +1623,7 @@ ul.help_ul li{
text-align: right;
border-spacing: 2px;
vertical-align: center;


form#filter_form {
background-color: @white_colour;
Expand Down Expand Up @@ -1659,7 +1659,7 @@ ul.help_ul li{

&:hover{
color: @white_colour !important;

}
}

Expand Down
3 changes: 2 additions & 1 deletion app/views/layouts/_dmponline_footer.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@

</div>
<div class="right_side_footer">
<br/> <br/> <a href="https://library.ualberta.ca/about-us/policies/privacy-policy">Web Site Privacy Policy</a> | <a href=<%= t('terms_url')%>>Terms and Conditions</a>
<br/><a href="https://library.ualberta.ca/about-us/policies/privacy-policy"><%= t('helpers.web_privacy_label')%></a> <br/>
<a href=<%= t('helpers.terms_url')%>><%= t('helpers.terms_label')%></a>
</p>
</div>

Expand Down
2 changes: 1 addition & 1 deletion app/views/layouts/_dmponline_header.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
<%= link_to t('helpers.help_label'), help_path, :class => "btn header_button btn-primary"%>
</li>
<li class="last_li">
<%= link_to t('helpers.terms_label'), t('terms_url'), :class => "btn header_button btn-primary"%>
<%= link_to t('helpers.terms_label'), t('helpers.terms_url'), :class => "btn header_button btn-primary"%>
</li>
<%end%>
</ul>
Expand Down
2 changes: 1 addition & 1 deletion app/views/layouts/_dmponline_header_ua.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
<%= link_to t('helpers.about_us_label'), about_us_path, :class => "btn header_button btn-primary"%>
</li>
<li class="last_li">
<%= link_to t('helpers.terms_label'), t('terms_url'), :class => "btn header_button btn-primary"%>
<%= link_to t('helpers.terms_label'), t('helpers.terms_url'), :class => "btn header_button btn-primary"%>
</li>
<%end%>
</ul>
Expand Down
2 changes: 1 addition & 1 deletion app/views/layouts/_dmponline_header_ubc.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
<%= link_to t('helpers.help_label'), help_path, :class => "btn header_button btn-primary"%>
</li>
<li class="last_li">
<%= link_to t('helpers.terms_label'), t('terms_url'), :class => "btn header_button btn-primary"%>
<%= link_to t('helpers.terms_label'), t('helpers.terms_url'), :class => "btn header_button btn-primary"%>
</li>
<%end%>
</ul>
Expand Down
2 changes: 1 addition & 1 deletion app/views/shared/_register_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
</li>
<li class="remember_me_li">
<%= f.check_box :accept_terms, :required => true %> <%= f.label :accept_terms, :class => "remember_div" do %>
<%= raw t('helpers.accept_terms_html', terms_url: t('terms_url'))%>
<%= raw t('helpers.accept_terms_html', terms_url: t('helpers.terms_url'))%>
<%end%>
</li>
<li>
Expand Down
3 changes: 2 additions & 1 deletion config/locales/en.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
en:
terms_url: 'https://portagenetwork.ca/portage-dmp-assistant-terms-use/'
date:
formats:
# Use the strftime parameters for formats.
Expand Down Expand Up @@ -299,6 +298,8 @@ en:
help_label: "Help"
contact_label: "Contact"
terms_label: "Terms of Use"
terms_url: 'https://portagenetwork.ca/portage-dmp-assistant-terms-use/'
web_privacy_label: "Web Site Privacy Policy"
jisc: "The DCC is funded by"

greeting: "Hello"
Expand Down
3 changes: 2 additions & 1 deletion config/locales/fr.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
fr:
terms_url: 'https://portagenetwork.ca/fr/conditions-dutilisation-de-lassistant-pgd-de-portage/'
date:
formats:
# Use the strftime parameters for formats.
Expand Down Expand Up @@ -285,6 +284,8 @@ fr:
help_label: "Aide"
contact_label: "Contact"
terms_label: "Conditions D'utilisation"
terms_url: 'https://portagenetwork.ca/fr/conditions-dutilisation-de-lassistant-pgd-de-portage/'
web_privacy_label: "Politique de confidentialité du site Web (en anglais)"
jisc: "Le DCC est financé par"

greeting: "Bonjour"
Expand Down

0 comments on commit 741e85c

Please sign in to comment.