Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
archery
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
3
Issues
3
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Taddeüs Kroes
archery
Commits
564ed14f
Commit
564ed14f
authored
Oct 20, 2014
by
Taddeus Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added meta tags for search engines
parent
aea60b96
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
23 additions
and
8 deletions
+23
-8
app.php
app.php
+4
-1
locale/nl_NL/LC_MESSAGES/archery.po
locale/nl_NL/LC_MESSAGES/archery.po
+7
-0
templates/layout.latte
templates/layout.latte
+4
-5
templates/layout_public.latte
templates/layout_public.latte
+6
-0
templates/login.latte
templates/login.latte
+1
-1
templates/register.latte
templates/register.latte
+1
-1
No files found.
app.php
View file @
564ed14f
...
...
@@ -8,10 +8,13 @@ require 'DatabaseAuthenticator.php';
* Set locale based on browser language specification, and set up gettext
*/
$lang
=
'en'
;
if
(
$locale
=
set_accept_locale
(
array
(
'nl'
)))
{
putenv
(
"LANG=
$locale
"
);
putenv
(
"LC_ALL=
$locale
"
);
putenv
(
"LC_MESSAGES=
$locale
"
);
$lang
=
'nl'
;
}
$domain
=
'archery'
;
...
...
@@ -102,5 +105,5 @@ require 'routes/user.php';
require
'routes/match.php'
;
// Certain globals should be available in all templates
$view
->
replace
(
compact
(
'app'
,
'config'
,
'user'
));
$view
->
replace
(
compact
(
'app'
,
'config'
,
'user'
,
'lang'
));
$app
->
run
();
locale/nl_NL/LC_MESSAGES/archery.po
View file @
564ed14f
...
...
@@ -215,3 +215,10 @@ msgstr "administrator"
msgid "member"
msgstr "gebruiker"
msgid ""
"Responsive (mobile and desktop) website for saving archery scores, e.g. from "
"training or competitions."
msgstr ""
"Responsieve website (voor mobiel en desktop) voor het opslaan van scores "
"behaald tijdens het boogschieten, bijv. training en wedstrijden."
templates/layout.latte
View file @
564ed14f
...
...
@@ -9,17 +9,16 @@
['register', _('Register')]
]}
<!doctype html>
<html
lang=
"
en
"
>
<html
lang=
"
{$lang}
"
>
<head>
<meta
charset=
"UTF-8"
>
<title>
Archery scorekeeper
</title>
<link
rel=
"stylesheet"
href=
"https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css"
>
<base
href=
"{$config['root_url']}/"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1, user-scalable=0"
>
{ifset #meta}{include meta}{/ifset}
<link
rel=
"stylesheet"
href=
"https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css"
>
<link
rel=
"stylesheet"
href=
"css/main.css"
>
{ifset #head}
{include head}
{/ifset}
{ifset #head}{include head}{/ifset}
</head>
<body>
<nav
class=
"navbar navbar-default navbar-static-top"
role=
"navigation"
>
...
...
templates/layout_public.latte
0 → 100644
View file @
564ed14f
{extends "layout.latte"}
{block meta}
<meta name="description" content="{_'Responsive (mobile and desktop) website for saving archery scores, e.g. from training or competitions.'}">
<meta name="robots" content="index, follow">
{/block}
templates/login.latte
View file @
564ed14f
{extends "layout.latte"}
{extends "layout
_public
.latte"}
{block content}
<div class="row">
...
...
templates/register.latte
View file @
564ed14f
{extends "layout.latte"}
{extends "layout
_public
.latte"}
{block content}
<div class="row">
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment