From 3a12f82014cbac58080ef19673e0ff86fcae1112 Mon Sep 17 00:00:00 2001 From: Manuel Munz Date: Wed, 13 Apr 2011 19:29:30 +0000 Subject: [PATCH] themes: Update fledermaus, freifunk-bno, freifunk-hannover and freifunk --- .../htdocs/luci-static/fledermaus/cascade.css | 50 ++++++++++++++++++++ .../luasrc/view/themes/fledermaus/header.htm | 17 +++++++ .../htdocs/luci-static/freifunk-bno/cascade.css | 51 ++++++++++++++++++++ .../luasrc/view/themes/freifunk-bno/header.htm | 16 +++++++ .../luci-static/freifunk-generic/cascade.css | 54 ++++++++++----------- .../luci-static/freifunk-hannover/cascade.css | 55 +++++++++++++++++++++- .../view/themes/freifunk-hannover/header.htm | 18 +++++++ .../htdocs/luci-static/freifunk/cascade.css | 51 ++++++++++++++++++++ .../luasrc/view/themes/freifunk/header.htm | 17 ++++++- 9 files changed, 298 insertions(+), 31 deletions(-) diff --git a/themes/fledermaus/htdocs/luci-static/fledermaus/cascade.css b/themes/fledermaus/htdocs/luci-static/fledermaus/cascade.css index a34881be0..6f8ff64c1 100644 --- a/themes/fledermaus/htdocs/luci-static/fledermaus/cascade.css +++ b/themes/fledermaus/htdocs/luci-static/fledermaus/cascade.css @@ -517,6 +517,56 @@ ul.cbi-apply { font-size: 90%; } +ul.cbi-tabmenu { + padding: 3px 0; + margin-left: 0 !important; + margin-bottom: -1px; + list-style-type: none; +} + +ul.cbi-tabmenu li.cbi-tab, +ul.cbi-tabmenu li.cbi-tab-disabled { + display: inline; + margin: 0; +} + +ul.cbi-tabmenu li.cbi-tab a, +ul.cbi-tabmenu li.cbi-tab-disabled a { + text-decoration: none; + padding: 3px 7px; + margin-right: 3px; + border: 1px outset #000000; + border-bottom: none; + background-color: #EEEEEE; + color: #BBBBBB; +} + +ul.cbi-tabmenu li.cbi-tab-highlighted a { + color: #000000; + background-color: #FFEEAA; +} + +ul.cbi-tabmenu li a:hover { + color: #000000; +} + +ul.cbi-tabmenu li.cbi-tab a { + position: relative; + top: 1px; + padding-top: 4px; + color: #000000; + background-color: #FFFFFF; +} + +div.cbi-tab-descr { + background-image: url(/luci-static/resources/cbi/help.gif); + background-position: 0.25em 50%; + background-repeat: no-repeat; + border-bottom: 1px solid #CCCCCC; + margin: 0.25em 0.25em 2em; + padding: 0.5em 0.5em 0.5em 2em; +} + .right { text-align: right; } diff --git a/themes/fledermaus/luasrc/view/themes/fledermaus/header.htm b/themes/fledermaus/luasrc/view/themes/fledermaus/header.htm index 4573eedcd..cd48bd722 100644 --- a/themes/fledermaus/luasrc/view/themes/fledermaus/header.htm +++ b/themes/fledermaus/luasrc/view/themes/fledermaus/header.htm @@ -43,6 +43,7 @@ require("luci.http").prepare_content("text/html") <% if node and node.css then %><% end %> + <%=striptags( hostname .. ( (node and node.title) and ' - ' .. node.title or '')) %> - LuCI + +<%- if luci.sys.user.getuser("root") and not luci.sys.user.getpasswd("root") then -%> +
+ <%:No password set!%>
+ <%:There is no password set on this router. Please configure a root password to protect the web interface and enable SSH.%> +
+<%- end -%> +