diff --git a/Builder/IISMainHandler/build.txt b/Builder/IISMainHandler/build.txt index a47db8f..062e64a 100644 --- a/Builder/IISMainHandler/build.txt +++ b/Builder/IISMainHandler/build.txt @@ -1 +1 @@ -1048 \ No newline at end of file +1054 \ No newline at end of file diff --git a/IISMainHandler/HandlersFactory.cs b/IISMainHandler/HandlersFactory.cs index 345b210..feaef32 100644 --- a/IISMainHandler/HandlersFactory.cs +++ b/IISMainHandler/HandlersFactory.cs @@ -83,17 +83,15 @@ namespace FLocal.IISHandler { case "registerbyinvite": return new handlers.response.RegisterByInviteHandler(); case "users": - if(context.requestParts.Length < 2) { - return new handlers.response.UserListHandler(); - } else { - switch(context.requestParts[1].ToLower()) { - case "active": - return new handlers.response.ActiveAccountListHandler(); - case "online": - return new handlers.response.WhoIsOnlineHandler(); - default: - return new handlers.response.UserListHandler(); - } + switch(context.requestParts[1].ToLower()) { + case "all": + return new handlers.response.UserListHandler(); + case "active": + return new handlers.response.ActiveAccountListHandler(); + case "online": + return new handlers.response.WhoIsOnlineHandler(); + default: + return new handlers.WrongUrlHandler(); } case "user": if(context.requestParts.Length < 2) { diff --git a/IISMainHandler/handlers/AbstractGetHandler.cs b/IISMainHandler/handlers/AbstractGetHandler.cs index 596e4fa..8fdf8c1 100644 --- a/IISMainHandler/handlers/AbstractGetHandler.cs +++ b/IISMainHandler/handlers/AbstractGetHandler.cs @@ -21,7 +21,8 @@ namespace FLocal.IISHandler.handlers { new XElement("title", Config.instance.AppInfo), new XElement("current", DateTime.Now.ToXml()), context.exportSession(), - context.userSettings.skin.exportToXml() + context.userSettings.skin.exportToXml(), + new XElement("currentUrl", "/" + String.Join("/", context.requestParts) + "/") ) ); } diff --git a/IISMainHandler/handlers/response/UserListHandler.cs b/IISMainHandler/handlers/response/UserListHandler.cs index f857c31..fd33133 100644 --- a/IISMainHandler/handlers/response/UserListHandler.cs +++ b/IISMainHandler/handlers/response/UserListHandler.cs @@ -19,7 +19,7 @@ namespace FLocal.IISHandler.handlers.response { } override protected IEnumerable getSpecificData(WebContext context) { - PageOuter pageOuter = PageOuter.createFromGet(context.requestParts, context.userSettings.usersPerPage, 1); + PageOuter pageOuter = PageOuter.createFromGet(context.requestParts, context.userSettings.usersPerPage, 2); IEnumerable users = User.getUsers(pageOuter); return new XElement[] { new XElement("users", diff --git a/static/css/global.css b/static/css/global.css index a9ac0e9..8d724ba 100644 --- a/static/css/global.css +++ b/static/css/global.css @@ -112,3 +112,6 @@ p { color:red !important; text-decoration: line-through; } +.currentLink { + border: solid 3px; +} diff --git a/templates/Full/UserList.xslt b/templates/Full/UserList.xslt index 3f76f3f..47da58f 100644 --- a/templates/Full/UserList.xslt +++ b/templates/Full/UserList.xslt @@ -65,7 +65,7 @@ страницы: - /Users/ + /Users/All/ diff --git a/templates/Full/elems/Header.xslt b/templates/Full/elems/Header.xslt index 9a73dc4..071c2c7 100644 --- a/templates/Full/elems/Header.xslt +++ b/templates/Full/elems/Header.xslt @@ -1,5 +1,21 @@ + + + + + + + + ? + + + currentLink + + + + + @@ -7,14 +23,14 @@