-
-
-
+
diff --git a/luciexpress/htdocs/pages/overview.js b/luciexpress/htdocs/pages/overview.js
index c113840b3..d1f5400f6 100644
--- a/luciexpress/htdocs/pages/overview.js
+++ b/luciexpress/htdocs/pages/overview.js
@@ -1,3 +1,4 @@
-angular.module("luci").controller("OverviewPageCtrl", function($scope){
+angular.module("luci")
+.controller("OverviewPageCtrl", function($scope){
$scope.themeUrl = "";
});
diff --git a/luciexpress/htdocs/pages/status.overview.js b/luciexpress/htdocs/pages/status.overview.js
index 0dc191fda..a38c80f1a 100644
--- a/luciexpress/htdocs/pages/status.overview.js
+++ b/luciexpress/htdocs/pages/status.overview.js
@@ -47,7 +47,7 @@ angular.module("luci").controller("StatsOverviewCtrl", function ($scope, $sessio
function (cb){$rpc.luci2.network.dhcp_leases().done(function(res){leases = res.leases || []; cb();}).fail(function(res){cb();});}
], function(err, next){
$scope.systemStatusTbl.rows = [
- [tr("Hostname"), "N/A"],
+ [tr("Hostname"), info.system.name],
[tr("Model"), info.system.nvramver],
[tr("Firmware Version"), info.system.firmware],
[tr("Kernel Version"), info.system.kernel],
diff --git a/luciexpress/htdocs/themes/vodaphone/css/theme.css b/luciexpress/htdocs/themes/vodaphone/css/theme.css
index 184b04435..e57403dcc 100644
--- a/luciexpress/htdocs/themes/vodaphone/css/theme.css
+++ b/luciexpress/htdocs/themes/vodaphone/css/theme.css
@@ -18,3 +18,13 @@ div.logo {
.navbar-default {
box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}
+
+.luci-nav a {
+ color: #444;
+}
+.nav > li.open > a {
+ color: #ee0000 !important;
+}
+.navbar .nav > li.open > a {
+ color: #fff !important;
+}
diff --git a/luciexpress/htdocs/widgets/luci.footer.html b/luciexpress/htdocs/widgets/luci.footer.html
new file mode 100644
index 000000000..ed8815d27
--- /dev/null
+++ b/luciexpress/htdocs/widgets/luci.footer.html
@@ -0,0 +1,11 @@
+
+
+
+ WAN IP Address: {{wanip}} | Firmware version: {{firmwareVersion}}
+
+
diff --git a/luciexpress/htdocs/widgets/luci.footer.js b/luciexpress/htdocs/widgets/luci.footer.js
new file mode 100644
index 000000000..f7286a291
--- /dev/null
+++ b/luciexpress/htdocs/widgets/luci.footer.js
@@ -0,0 +1,30 @@
+angular.module("luci")
+.directive("luciFooter", function(){
+ return {
+ // accepted parameters for this tag
+ scope: {
+ },
+ templateUrl: "widgets/luci.footer.html",
+ controller: "LuciFooterControl",
+ controllerAs: "ctrl"
+ };
+})
+.controller("LuciFooterControl", function($scope, $rpc, $languages, gettextCatalog){
+ // TODO: move this into a higher level controller maybe?
+ $scope.languages = $languages.getLanguages();
+ $scope.isActiveLanguage = function(lang){
+ return gettextCatalog.currentLanguage == lang.short_code;
+ }
+ $scope.setLanguage = function(lang){
+ $languages.setLanguage(lang.short_code);
+ };
+ $rpc.network.interface.status({
+ "interface": "wan"
+ }).done(function(wan){
+ $rpc.router.info().done(function(info){
+ $scope.firmwareVersion = info.system.firmware;
+ $scope.wanip = wan["ipv4-address"][0].address;
+ $scope.$apply();
+ });
+ });
+});
diff --git a/luciexpress/htdocs/widgets/luci.layout.naked.html b/luciexpress/htdocs/widgets/luci.layout.naked.html
index d165baa87..fb2e171d8 100644
--- a/luciexpress/htdocs/widgets/luci.layout.naked.html
+++ b/luciexpress/htdocs/widgets/luci.layout.naked.html
@@ -8,4 +8,9 @@
+