Commit 826a08f753e08d75afa1ed6b99171091c4ba0977

Authored by Rafael Reggiani Manzo
1 parent 49c7765b
Exists in colab and in 2 other branches master, stable

Extract footer into a partial

It will enable better isolation when turning it into a Bootstrap
container-fluid just like the header and body.

Signed-off-by: Heitor Reis <marcheing@gmail.com>
app/views/layouts/application.html.erb
... ... @@ -57,10 +57,7 @@
57 57 </div>
58 58 </div><!--/row-->
59 59  
60   - <footer>
61   - <div class="footer-left">&copy; <%= link_to(t('mezuro_team'), '/humans.txt') %> 2013-2015</div>
62   - <div class="footer-right"><%= link_to(image_tag('agplv3-88x31.png'), 'http://www.gnu.org/licenses/agpl-3.0-standalone.html') %> <%= link_to image_tag('fork-me.png'), 'https://github.com/mezuro/prezento' %> <%= image_tag 'usp-cloud-nuvem-logo.png' %> <%= link_to image_tag('banner-ccsl.png', height: '40', width: '190'), 'http://ccsl.ime.usp.br/' %></div>
63   - </footer>
  60 + <%= render partial: 'shared/footer' %>
64 61  
65 62 <script type="text/javascript">
66 63 $(function() {
... ...
app/views/shared/_footer.html.erb 0 → 100644
... ... @@ -0,0 +1,4 @@
  1 +<footer>
  2 + <div class="footer-left">&copy; <%= link_to(t('mezuro_team'), '/humans.txt') %> 2013-2015</div>
  3 + <div class="footer-right"><%= link_to(image_tag('agplv3-88x31.png'), 'http://www.gnu.org/licenses/agpl-3.0-standalone.html') %> <%= link_to image_tag('fork-me.png'), 'https://github.com/mezuro/prezento' %> <%= image_tag 'usp-cloud-nuvem-logo.png' %> <%= link_to image_tag('banner-ccsl.png', height: '40', width: '190'), 'http://ccsl.ime.usp.br/' %></div>
  4 +</footer>
... ...