Skip to content

Commit

Permalink
[MOD] adding own landing site including internationalization and remo…
Browse files Browse the repository at this point in the history
…val of fallback from mobile

[ISSUE] #5
  • Loading branch information
sebastiangraf committed Dec 10, 2012
1 parent c4563c9 commit 9e289f2
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 2 deletions.
18 changes: 18 additions & 0 deletions app/views/home/home.html.haml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
-# Copyright (c) 2010-2011, University of Konstanz This file is
-# licensed under the Affero General Public License version 3 or later. See
-# the COPYRIGHT file.
- content_for :page_title do
= pod_name

#section_header
%h2
= t('welcome')

.container{:style => 'text-align:center;'}
%p
%b=t('uniknintro')
%br
%br
%a{:id='login-link', :href='login', :class='btn', :style='margin-right: 15px;'} Log In
2 changes: 1 addition & 1 deletion app/views/home/show.mobile.haml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
-# the COPYRIGHT file.
=render :partial => 'home/show' rescue "put something in app/views/home/_show.html"
=render :partial => 'home/show'
1 change: 1 addition & 0 deletions config/locales/diaspora/de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1054,6 +1054,7 @@ de:
not_enabled: "Webfinger scheint nicht für den Server von %{account} verfügbar zu sein."
xrd_fetch_failed: "Die XRD-Datei von %{account} konnte nicht heruntergeladen werden."
welcome: "Willkommen!"
uniknintro: "Dieser Pod ist momentan im ALPHA-status was bedeuted dass diese Platform nur für Testzwecke dient. Konkret heisst das: Alle Daten können jederzeit gelöscht werden und die Verfügbarkeit ist nicht garantiert!"
will_paginate:
next_label: "nächstes »"
previous_label: "« voriges"
2 changes: 2 additions & 0 deletions config/locales/diaspora/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ en:
no_results: "No Results Found"
_contacts: "Contacts"
welcome: "Welcome!"
uniknintro: "This Pod is currently ALPHA-status only which means that this platform is for testing only. More concise: Any data may be deleted at any time as well as the availability may not be guaranteed!"


#for reference translation, the real activerecord english transations are actually
#in en-US, en-GB, and en-AU yml files
Expand Down
2 changes: 1 addition & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -216,5 +216,5 @@
end

# Startpage
root :to => 'home#show'
root :to => 'home#home'
end

0 comments on commit 9e289f2

Please sign in to comment.