let the 'toggle mobile' link show in the footer, refactored layout a bit

This commit is contained in:
Florian Staudacher 2012-07-22 15:25:51 +02:00
parent 9bd7c6965f
commit b9c4e8a02f
4 changed files with 19 additions and 11 deletions

View file

@ -1348,6 +1348,11 @@ footer
:margin
:right 1em
&.separator
:margin-left -.35em
:margin-right .65em
@include opacity(.6)
&:last-child
:margin 0
a

View file

@ -65,16 +65,7 @@
%a{:id=>"back-to-top", :title=>"#{t('.back_to_top')}", :href=>"#"}
⇧
%footer
.container
%ul#footer_nav
%li= link_to '@joindiaspora', "http://twitter.com/joindiaspora"
%li= link_to 'github', "https://github.com/diaspora/diaspora"
%li= link_to t('layouts.header.blog'), "http://blog.joindiaspora.com"
%li= link_to t('layouts.header.code'), "#{root_path.chomp('/')}/source.tar.gz" unless request.url.match(/joindiaspora.com/)
%li= link_to t('.whats_new'), 'https://github.com/diaspora/diaspora/wiki/Changelog'
%li= link_to(t('layouts.application.toggle'), toggle_mobile_path) if is_mobile_device?
= image_tag 'branding/powered_by_diaspora.png', :height => "11px", :width => "145px"
= render :partial =>'shared/footer'
= include_chartbeat
= include_mixpanel_guid

View file

@ -0,0 +1,11 @@
%footer
.container
%ul#footer_nav
%li= link_to '@joindiaspora', "http://twitter.com/joindiaspora"
%li= link_to 'github', "https://github.com/diaspora/diaspora"
%li= link_to t('layouts.header.blog'), "http://blog.joindiaspora.com"
%li= link_to t('layouts.application.whats_new'), 'https://github.com/diaspora/diaspora/wiki/Changelog'
%li.separator= "|"
%li= link_to(t('layouts.header.code'), "#{root_path.chomp('/')}/source.tar.gz", {:title => t('layouts.application.source_package')}) unless request.url.match(/joindiaspora.com/)
%li= link_to(t('layouts.application.toggle'), toggle_mobile_path)
= image_tag 'branding/powered_by_diaspora.png', :height => "11px", :width => "145px"

View file

@ -406,6 +406,7 @@ en:
public_feed: "Public Diaspora Feed for %{name}"
your_aspects: "your aspects"
back_to_top: "Back to top"
source_package: "download the source code package"
likes:
likes: