Add a sticky footer div

master
Daniel Berteaud 11 years ago
parent 7c11139bee
commit 596ef48dcb
  1. 1
      conf/vroom.conf.sample
  2. 2
      lib/Vroom/I18N/en.pm
  3. 2
      lib/Vroom/I18N/fr.pm
  4. 18
      public/css/vroom.css
  5. 1
      public/vroom.pl
  6. 7
      templates/default/footer.html.ep
  7. 1
      templates/default/header.html.ep

@ -14,6 +14,7 @@ realm => 'example.com',
# Web & contact # Web & contact
emailFrom => 'vroom@example.com', emailFrom => 'vroom@example.com',
feedbackRecipient => 'admin@example.com', feedbackRecipient => 'admin@example.com',
poweredBy => '<a href="http://www.firewall-services.com" target="_blank">Firewall Services</a>',
# Templates to use for web pages # Templates to use for web pages
template => 'default', template => 'default',
# Used to sign cookies # Used to sign cookies

@ -4,6 +4,8 @@ use base 'Vroom::I18N';
our %Lexicon = ( our %Lexicon = (
_AUTO => 1, _AUTO => 1,
"WELCOME" => "Welcome on VROOM !!", "WELCOME" => "Welcome on VROOM !!",
"VROOM_IS_FREE_SOFTWARE" => "VROOM is a free software, released under the MIT licence",
"POWERED_BY" => "Proudly powered by",
"ERROR_NAME_INVALID" => "This name is not valid", "ERROR_NAME_INVALID" => "This name is not valid",
"ERROR_NAME_CONFLICT" => "A room with this name already exists, please choose another one", "ERROR_NAME_CONFLICT" => "A room with this name already exists, please choose another one",
"ERROR_ROOM_s_DOESNT_EXIST" => "The room %s doesn't exist", "ERROR_ROOM_s_DOESNT_EXIST" => "The room %s doesn't exist",

@ -6,6 +6,8 @@ use utf8;
our %Lexicon = ( our %Lexicon = (
_AUTO => 1, _AUTO => 1,
"WELCOME" => "Bienvenue sur VROOM !!", "WELCOME" => "Bienvenue sur VROOM !!",
"VROOM_IS_FREE_SOFTWARE" => "VROOM est un logiciel libre diffusé sous license MIT",
"POWERED_BY" => "Fièrement propulsé par",
"ERROR_NAME_INVALID" => "Ce nom n'est pas valide", "ERROR_NAME_INVALID" => "Ce nom n'est pas valide",
"ERROR_NAME_CONFLICT" => "Ce nom est déjà pris, choisissez en un autre", "ERROR_NAME_CONFLICT" => "Ce nom est déjà pris, choisissez en un autre",
"ERROR_ROOM_s_DOESNT_EXIST" => "Le salon %s n'existe pas", "ERROR_ROOM_s_DOESNT_EXIST" => "Le salon %s n'existe pas",

@ -157,6 +157,24 @@
text-align: justify; text-align: justify;
text-justify:inter-word; text-justify:inter-word;
} }
html,
body {
height: 100%;
}
#wrap {
min-height: 100%;
height: auto;
margin: 0 auto -50px;
padding: 0 0 50px;
}
#footerContainer{
height: 50px;
background-color: #F8F8F8;
border-top: solid #E7E7E7 2px;
}
.footer{
padding-top: 10px;
}
@media screen and (max-width: 480px) { @media screen and (max-width: 480px) {
body { body {
font-size: 0.8em; font-size: 0.8em;

@ -71,6 +71,7 @@ our $config = plugin Config => {
realm => 'vroom', realm => 'vroom',
emailFrom => 'vroom@example.com', emailFrom => 'vroom@example.com',
feedbackRecipient => 'admin@example.com', feedbackRecipient => 'admin@example.com',
poweredBy => '<a href="http://www.firewall-services.com" target="_blank">Firewall Services</a>',
template => 'default', template => 'default',
inactivityTimeout => 3600, inactivityTimeout => 3600,
persistentInactivityTimeout => 0, persistentInactivityTimeout => 0,

@ -1,4 +1,9 @@
<div id="footer"> </div>
<div id="footerContainer">
<div class="container-fluid footer">
<p class="text-muted pull-left"><%=l 'VROOM_IS_FREE_SOFTWARE' %></p>
<p class="text-muted pull-right brand"><%=l 'POWERED_BY' %> <%== $config->{poweredBy} %></p>
</div>
</div> </div>
</body> </body>
</html> </html>

@ -11,3 +11,4 @@
<link rel="icon" type="image/png" href="/img/favicon.png" /> <link rel="icon" type="image/png" href="/img/favicon.png" />
</head> </head>
<body> <body>
<div id="wrap">

Loading…
Cancel
Save