changeset 2479:2d84ec2d9de1

Adds site name to the top bar
author sharky93 <rishabhr123@gmail.com>
date Sat, 14 Sep 2013 03:01:18 +0530
parents 2ead05f02b24
children a17476268e7a
files MoinMoin/themes/basic/static/css/basic.css MoinMoin/themes/basic/static/custom-less/basic.less MoinMoin/themes/basic/templates/layout.html
diffstat 3 files changed, 14 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/themes/basic/static/css/basic.css	Sat Sep 14 02:37:11 2013 +0530
+++ b/MoinMoin/themes/basic/static/css/basic.css	Sat Sep 14 03:01:18 2013 +0530
@@ -4208,6 +4208,9 @@
     display: none !important;
   }
 }
+.moin-sitename {
+  padding-left: 0px;
+}
 .moin-logo {
   text-align: center;
   position: relative;
@@ -4455,6 +4458,7 @@
   background-color: #222222;
   background-color: #1b436d;
   padding-left: 0px;
+  padding-right: 0px;
 }
 .moin-navbar-inverse .navbar-brand {
   color: #999999;
--- a/MoinMoin/themes/basic/static/custom-less/basic.less	Sat Sep 14 02:37:11 2013 +0530
+++ b/MoinMoin/themes/basic/static/custom-less/basic.less	Sat Sep 14 03:01:18 2013 +0530
@@ -1,4 +1,7 @@
 @import "bootstrap.less";
+.moin-sitename {
+  padding-left: 0px;
+}
 
 .moin-logo {
   .text-center;
@@ -100,6 +103,7 @@
   .navbar-inverse;
   background-color: @moin-navbar-inverse-bgcolor;
   padding-left: 0px;
+  padding-right: 0px;
   .navbar-nav {
     > li > a {
       color: @moin-navbar-inverse-textcolor;
--- a/MoinMoin/themes/basic/templates/layout.html	Sat Sep 14 02:37:11 2013 +0530
+++ b/MoinMoin/themes/basic/templates/layout.html	Sat Sep 14 03:01:18 2013 +0530
@@ -57,7 +57,12 @@
                 <div class="row">
                     <div class="col-lg-12">
                         <div class="navbar moin-navbar-inverse">
-                            <div class="col-lg-9">
+                            <div class="col-lg-9 moin-sitename">
+                                <ul class="nav navbar-nav pull-left">
+                                {% if cfg.sitename %}
+                                    <li class="navbar-text"> {{ cfg.sitename }} </li>
+                                {% endif %}
+                                </ul>
                         <ul class="nav navbar-nav pull-right">
 
                             {% if user.valid -%}