X-Git-Url: https://coquelicot.potager.org/gitweb/?p=coquelicot.git;a=blobdiff_plain;f=views%2Flayout.haml;h=0a511396bb7537a2d1a7d7b852b6c4fb7669ad23;hp=62848e092fb9fa6250d74888104882688f4b0e0f;hb=b047f59176633faa97742db13ac66f6b00a4b1fe;hpb=79ea31431e9d6a48c7f4c7a2bb1f506109482ce3 diff --git a/views/layout.haml b/views/layout.haml index 62848e0..0a51139 100644 --- a/views/layout.haml +++ b/views/layout.haml @@ -1,26 +1,52 @@ +-# Coquelicot: "one-click" file sharing with a focus on users' privacy. +-# Copyright © 2010-2012 potager.org +-# © 2011 mh / immerda.ch +-# +-# This program is free software: you can redistribute it and/or modify +-# it under the terms of the GNU Affero General Public License as +-# published by the Free Software Foundation, either version 3 of the +-# License, or (at your option) any later version. +-# +-# This program is distributed in the hope that it will be useful, +-# but WITHOUT ANY WARRANTY; without even the implied warranty of +-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-# GNU Affero General Public License for more details. +-# +-# You should have received a copy of the GNU Affero General Public License +-# along with this program. If not, see . + !!! XML !!! Strict %html %head %title coquelicot + %meta{ :"http-equiv" => "Content-Type", :content => "text/html; charset=UTF-8" } %base{ :href => base_href } %link{ :rel => 'stylesheet', :href => "style.css", :type => 'text/css', :media => "screen, projection" } + - unless settings.additional_css.empty? + %link{ :rel => 'stylesheet', :href => "#{settings.additional_css}", :type => 'text/css', :media => "screen, projection" } %script{ :type => 'text/javascript', :src => 'javascripts/jquery.min.js' } %script{ :type => 'text/javascript', :src => 'javascripts/jquery.lightBoxFu.js' } %script{ :type => 'text/javascript', :src => 'javascripts/jquery.uploadProgress.js' } :javascript - var generateRandomPassword = 'Generate random'; - var generatingRandomPassword = 'Generating…'; + var i18n = { generateRandomPassword: _('Generate random'), + generatingRandomPassword: _('Generating…'), + pleaseTryAgain: _('Please try again!'), + error: _('Error:'), + uploadStarting: _('Upload starting...'), + uploading: _('Uploading: '), + kb: _('kB'), + }; %script{ :type => 'text/javascript', :src => 'javascripts/coquelicot.js' } %body #container = yield #footer - %span Coquelicot © 2010 potager.org + %span= 'Coquelicot © 2010-2012 potager.org' %span - — - %a{ :href => 'http://www.gnu.org/licenses/agpl.txt' } AGPLv3 - — + = '—' + %a{ :href => 'http://www.gnu.org/licenses/agpl.txt' }= 'AGPLv3' + = '—' %span - %code git clone #{base_href}coquelicot.git + %code= "git clone #{clone_url}"