Skip to content

Commit

Permalink
Clean up admin menus
Browse files Browse the repository at this point in the history
  • Loading branch information
pudge committed May 12, 2003
1 parent 4dde0ec commit 1a40dd7
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 44 deletions.
45 changes: 27 additions & 18 deletions plugins/Admin/dump
@@ -1,21 +1,30 @@
INSERT INTO menus (menu, label, value, seclev, menuorder) VALUES ('admin','Blocks','[% constants.rootdir %]/admin.pl?op=blocks',10000,9);
INSERT INTO menus (menu, label, value, seclev, menuorder) VALUES ('admin','Filters','[% constants.rootdir %]/admin.pl?op=listfilters',1000,11);
INSERT INTO menus (menu, label, value, seclev, menuorder) VALUES ('admin','Topics','[% constants.rootdir %]/admin.pl?op=topics',10000,3);
INSERT INTO menus (menu, label, value, seclev, menuorder) VALUES ('admin','Home','[% constants.rootdir %]/',1,2);
INSERT INTO menus (menu, label, value, seclev, menuorder) VALUES ('admin','New','[% constants.rootdir %]/admin.pl?op=edit',100,6);
INSERT INTO menus (menu, label, value, seclev, menuorder) VALUES ('admin','Poll','[% constants.rootdir %]/pollBooth.pl?op=edit',500,8);
INSERT INTO menus (menu, label, value, seclev, menuorder) VALUES ('admin','Sections','[% constants.rootdir %]/sections.pl?op=list',1000,12);
INSERT INTO menus (menu, label, value, seclev, menuorder) VALUES ('admin','Colors','[% constants.rootdir %]/admin.pl?op=colors',10000,10);
INSERT INTO menus (menu, label, value, seclev, menuorder) VALUES ('admin','Stories','[% constants.rootdir %]/admin.pl',100,5);
INSERT INTO menus (menu, label, value, seclev, menuorder) VALUES ('admin','Templates','[% constants.rootdir %]/admin.pl?op=templates',500,15);
INSERT INTO menus (menu, label, value, seclev, menuorder) VALUES ('admin','Keywords','[% constants.rootdir %]/admin.pl?op=edit_keyword',10000,14);
INSERT INTO menus (menu, label, value, seclev, menuorder) VALUES ('admin','Users','[% constants.rootdir %]/users.pl',10000,13);
INSERT INTO menus (menu, label, value, seclev, menuorder) VALUES ('admin','Vars','[% constants.rootdir %]/admin.pl?op=vars',10000,15);
INSERT INTO menus (menu, label, value, seclev, menuorder) VALUES ('admin','[% USE Slash %][% Slash.db.getSubmissionCount() %] Submissions','[% constants.rootdir %]/submit.pl?op=list',100,7);
INSERT INTO menus (menu, label, value, seclev, menuorder) VALUES ('admin','Site','[% constants.rootdir %]/admin.pl?op=siteinfo',10000,16);
INSERT INTO menus (menu, label, value, seclev, menuorder) VALUES ('admin','Slashd','[% constants.rootdir %]/admin.pl?op=slashd',500,17);
INSERT INTO menus (menu, label, value, seclev, menuorder) VALUES ('admin','Recent','[% constants.rootdir %]/admin.pl?op=recent',500,18);
INSERT INTO menus (menu, label, value, seclev, menuorder) VALUES ('admin','Help','[% constants.rootdir %]/slashguide.shtml',1,17);
INSERT INTO menus (menu, label, sel_label, value, seclev, menuorder) VALUES ('admin','Home','Home','[% constants.rootdir %]/',1,2);
INSERT INTO menus (menu, label, sel_label, value, seclev, menuorder) VALUES ('admin','Stories','Stories','[% constants.rootdir %]/admin.pl',100,5);
INSERT INTO menus (menu, label, sel_label, value, seclev, menuorder) VALUES ('admin','New','New','[% constants.rootdir %]/admin.pl?op=edit',100,6);
INSERT INTO menus (menu, label, sel_label, value, seclev, menuorder) VALUES ('admin','[% Slash.db.getSubmissionCount() %] Submissions','Submissions','[% constants.rootdir %]/submit.pl?op=list',100,7);
INSERT INTO menus (menu, label, sel_label, value, seclev, menuorder) VALUES ('admin','Poll','Poll','[% constants.rootdir %]/pollBooth.pl?op=edit',500,8);
INSERT INTO menus (menu, label, sel_label, value, seclev, menuorder) VALUES ('admin','Config','Config','[% constants.rootdir %]/admin.pl?op=topics',500,11);
INSERT INTO menus (menu, label, sel_label, value, seclev, menuorder) VALUES ('admin','Info','Info','[% constants.rootdir %]/admin.pl?op=recent',500,12);
INSERT INTO menus (menu, label, sel_label, value, seclev, menuorder) VALUES ('admin','Keywords','Keywords','[% constants.rootdir %]/admin.pl?op=edit_keyword',10000,14);
INSERT INTO menus (menu, label, sel_label, value, seclev, menuorder) VALUES ('admin','Help','Help','[% constants.rootdir %]/getting_started.shtml',1,17);

INSERT INTO menus (menu, label, sel_label, value, seclev, menuorder) VALUES ('config','Topics','Topics','[% constants.rootdir %]/admin.pl?op=topics',10000,1);
INSERT INTO menus (menu, label, sel_label, value, seclev, menuorder) VALUES ('config','Blocks','Blocks','[% constants.rootdir %]/admin.pl?op=blocks',500,2);
INSERT INTO menus (menu, label, sel_label, value, seclev, menuorder) VALUES ('config','Colors','Colors','[% constants.rootdir %]/admin.pl?op=colors',500,3);
INSERT INTO menus (menu, label, sel_label, value, seclev, menuorder) VALUES ('config','Filters','Filters','[% constants.rootdir %]/admin.pl?op=listfilters',1000,4);
INSERT INTO menus (menu, label, sel_label, value, seclev, menuorder) VALUES ('config','Sections','Sections','[% constants.rootdir %]/sections.pl?op=list',1000,5);
INSERT INTO menus (menu, label, sel_label, value, seclev, menuorder) VALUES ('config','Users','Users','[% constants.rootdir %]/users.pl',10000,6);
INSERT INTO menus (menu, label, sel_label, value, seclev, menuorder) VALUES ('config','Templates','Templates','[% constants.rootdir %]/admin.pl?op=templates',500,7);
INSERT INTO menus (menu, label, sel_label, value, seclev, menuorder) VALUES ('config','Vars','Vars','[% constants.rootdir %]/admin.pl?op=vars',10000,8);
INSERT INTO menus (menu, label, sel_label, value, seclev, menuorder) VALUES ('config','Normal','Normal','[% constants.rootdir %]/admin.pl',500,9);
INSERT INTO menus (menu, label, sel_label, value, seclev, menuorder) VALUES ('config','Info','Info','[% constants.rootdir %]/admin.pl?op=recent',500,10);

INSERT INTO menus (menu, label, sel_label, value, seclev, menuorder) VALUES ('info','Site','Site','[% constants.rootdir %]/admin.pl?op=siteinfo',100,9);
INSERT INTO menus (menu, label, sel_label, value, seclev, menuorder) VALUES ('info','Slashd','Slashd','[% constants.rootdir %]/admin.pl?op=slashd',500,9);
INSERT INTO menus (menu, label, sel_label, value, seclev, menuorder) VALUES ('info','Recent','Recent','[% constants.rootdir %]/admin.pl?op=recent',500,10);
INSERT INTO menus (menu, label, sel_label, value, seclev, menuorder) VALUES ('info','Normal','Normal','[% constants.rootdir %]/admin.pl',500,12);
INSERT INTO menus (menu, label, sel_label, value, seclev, menuorder) VALUES ('info','Config','Config','[% constants.rootdir %]/admin.pl?op=topics',500,13);

INSERT INTO vars (name, value, description) VALUES ('ispell', 'ispell', 'Location of ispell binary or empty string to turn off');
INSERT INTO vars (name, value, description) VALUES ('similarstorydays', '30', 'Number of days to look back for uncommon words when determining similar stories');
INSERT INTO vars (name, value, description) VALUES ('similarstorymaxwords', '30', 'Maximum number of top-weighted scores to search for in previous stories');
Expand Down
14 changes: 7 additions & 7 deletions themes/slashcode/templates/admin;menu;default
Expand Up @@ -20,13 +20,13 @@ __template__
[% END %]
[% subs = Slash.db.getSubmissionCount() %]
[% tabs = [
{ link = "/admin.pl", label = "Stories", sel_label = "stories" },
{ link = "/admin.pl?op=edit", label = "New", sel_label = "new" },
{ link = "/submit.pl?op=list", label = "$subs Submissions", sel_label = "submissions" },
{ link = "/pollBooth.pl?op=edit", label = "Poll", sel_label = "poll" },
{ link = "/admin.pl?op=topics", label = "Config", sel_label = "topics" },
{ link = "/admin.pl?op=recent", label = "Info", sel_label = "recent" },
{ link = "/getting_started.shtml", label = "Help", sel_label = "help" },
{ link = "$constants.rootdir/admin.pl", label = "Stories", sel_label = "stories" },
{ link = "$constants.rootdir/admin.pl?op=edit", label = "New", sel_label = "new" },
{ link = "$constants.rootdir/submit.pl?op=list", label = "$subs Submissions", sel_label = "submissions" },
{ link = "$constants.rootdir/pollBooth.pl?op=edit", label = "Poll", sel_label = "poll" },
{ link = "$constants.rootdir/admin.pl?op=topics", label = "Config", sel_label = "topics" },
{ link = "$constants.rootdir/admin.pl?op=recent", label = "Info", sel_label = "recent" },
{ link = "$constants.rootdir/getting_started.shtml", label = "Help", sel_label = "help" },
];
PROCESS tabbedmenu tabs=tabs color=color selected=page; %]
__seclev__
Expand Down
20 changes: 10 additions & 10 deletions themes/slashcode/templates/config;menu;default
Expand Up @@ -15,16 +15,16 @@ __name__
config
__template__
[% tabs = [
{ link = "/admin.pl", label = "Stories", sel_label = "stories" },
{ link = "/admin.pl?op=topics", label = "Topics", sel_label = "topics" },
{ link = "/admin.pl?op=blocks", label = "Blocks", sel_label = "blocks" },
{ link = "/admin.pl?op=colors", label = "Colors", sel_label = "colors" },
{ link = "/admin.pl?op=listfilters", label = "Filters", sel_label = "filters" },
{ link = "/sections.pl?op=list", label = "Sections", sel_label = "sections" },
{ link = "/admin.pl?op=templates", label = "Templates", sel_label = "templates" },
{ link = "/admin.pl?op=vars", label = "Vars", sel_label = "vars" },
{ link = "/admin.pl?op=recent", label = "Info", sel_label = "info" },
{ link = "/getting_started.shtml", label = "Help", sel_label = "help" },
{ link = "$constants.rootdir/admin.pl", label = "Stories", sel_label = "stories" },
{ link = "$constants.rootdir/admin.pl?op=topics", label = "Topics", sel_label = "topics" },
{ link = "$constants.rootdir/admin.pl?op=blocks", label = "Blocks", sel_label = "blocks" },
{ link = "$constants.rootdir/admin.pl?op=colors", label = "Colors", sel_label = "colors" },
{ link = "$constants.rootdir/admin.pl?op=listfilters", label = "Filters", sel_label = "filters" },
{ link = "$constants.rootdir/sections.pl?op=list", label = "Sections", sel_label = "sections" },
{ link = "$constants.rootdir/admin.pl?op=templates", label = "Templates", sel_label = "templates" },
{ link = "$constants.rootdir/admin.pl?op=vars", label = "Vars", sel_label = "vars" },
{ link = "$constants.rootdir/admin.pl?op=recent", label = "Info", sel_label = "info" },
{ link = "$constants.rootdir/getting_started.shtml", label = "Help", sel_label = "help" },
];
PROCESS tabbedmenu tabs=tabs color=color selected=page; %]

Expand Down
19 changes: 10 additions & 9 deletions themes/slashcode/templates/info;menu;default
Expand Up @@ -16,15 +16,16 @@ info
__template__

[% tabs = [
{ link = "/admin.pl", label = "Stories", sel_label = "stories" },
{ link = "/admin.pl?op=siteinfo", label = "Site", sel_label = "site" },
{ link = "/users.pl?op=topabusers", label = "Abusers", sel_label = "abusers" },
{ link = "/users.pl?op=listreadonly", label = "Read Only", sel_label = "readonly" },
{ link = "/users.pl?op=listbanned", label = "Banned", sel_label = "banned" },
{ link = "/admin.pl?op=slashd", label = "Slashd", sel_label = "slashd" },
{ link = "/admin.pl?op=recent", label = "Recent", sel_label = "recent" },
{ link = "/admin.pl?op=topics", label = "Config", sel_label = "config" },
{ link = "/getting_started.shtml", label = "Help", sel_label = "help" },
{ link = "$constants.rootdir/admin.pl", label = "Stories", sel_label = "stories" },
{ link = "$constants.rootdir/stats.pl", label = "Stats", sel_label = "stats" },
{ link = "$constants.rootdir/admin.pl?op=siteinfo", label = "Site", sel_label = "site" },
{ link = "$constants.rootdir/users.pl?op=topabusers", label = "Abusers", sel_label = "abusers" },
{ link = "$constants.rootdir/users.pl?op=listreadonly", label = "Read Only", sel_label = "readonly" },
{ link = "$constants.rootdir/users.pl?op=listbanned", label = "Banned", sel_label = "banned" },
{ link = "$constants.rootdir/admin.pl?op=slashd", label = "Slashd", sel_label = "slashd" },
{ link = "$constants.rootdir/admin.pl?op=recent", label = "Recent", sel_label = "recent" },
{ link = "$constants.rootdir/admin.pl?op=topics", label = "Config", sel_label = "config" },
{ link = "$constants.rootdir/getting_started.shtml", label = "Help", sel_label = "help" },
];
PROCESS tabbedmenu tabs=tabs color=color selected=page; %]

Expand Down

0 comments on commit 1a40dd7

Please sign in to comment.