diff --git a/common/templates/templates.go b/common/templates/templates.go
index 6c25bcee..828780a9 100644
--- a/common/templates/templates.go
+++ b/common/templates/templates.go
@@ -377,6 +377,7 @@ func (c *CTemplateSet) compile(name string, content, expects string, expectsInt
c.detail("invisible")
continue
}
+ // TODO: What if the same template is invoked in multiple spots in a template?
skipBlock := skipped[frag.TemplateName]
skip := skipBlock.Frags[skipBlock.ClosestFragSkip]
_, ok := skipBlock.Frags[frag.Index]
@@ -385,7 +386,11 @@ func (c *CTemplateSet) compile(name string, content, expects string, expectsInt
}
c.detailf("skipblock %+v\n", skipBlock)
c.detail("skipping ", skip)
- writeFrag(frag.TemplateName, frag.Index-skip, frag.Body)
+ index := frag.Index - skip
+ if index < 0 {
+ index = 0
+ }
+ writeFrag(frag.TemplateName, index, frag.Body)
}
fout = strings.Replace(fout, `))
diff --git a/langs/english.json b/langs/english.json
index 59916a62..dda4308a 100644
--- a/langs/english.json
+++ b/langs/english.json
@@ -499,6 +499,7 @@
"quick_topic.content_placeholder":"Insert post here",
"quick_topic.add_poll_option":"Add new poll option",
"quick_topic.create_topic_button":"Create Topic",
+ "quick_topic.create_topic_button_short":"New Topic",
"quick_topic.add_poll_button":"Add Poll",
"quick_topic.add_file_button":"Add File",
"quick_topic.cancel_button":"Cancel",
@@ -506,6 +507,7 @@
"topic_list.create_topic_tooltip":"Create Topic",
"topic_list.create_topic_aria":"Create a topic",
"topic_list.moderate":"Moderate",
+ "topic_list.moderate_short":"Mod",
"topic_list.moderate_tooltip":"Moderate",
"topic_list.moderate_aria":"Moderate Posts",
"topic_list.what_to_do":"What do you want to do with these {0} topics?",
diff --git a/routes/forum.go b/routes/forum.go
index affaa234..3e639a46 100644
--- a/routes/forum.go
+++ b/routes/forum.go
@@ -42,6 +42,7 @@ func ViewForum(w http.ResponseWriter, r *http.Request, user common.User, header
return common.NoPermissions(w, r, user)
}
header.Zone = "view_forum"
+ header.Path = "/forums/"
// TODO: Fix this double-check
forum, err := common.Forums.Get(fid)
diff --git a/templates/forum.html b/templates/forum.html
index db148a3b..a5e16fd2 100644
--- a/templates/forum.html
+++ b/templates/forum.html
@@ -4,13 +4,14 @@
{{if ne .LastPage .Page}}
{{end}}
-
+
{{.Title}}
{{if .CurrentUser.Loggedin}}
{{if .CurrentUser.Perms.CreateTopic}}
+
{{/** TODO: Add a permissions check for this **/}}
diff --git a/templates/topics.html b/templates/topics.html
index 15304696..be90c760 100644
--- a/templates/topics.html
+++ b/templates/topics.html
@@ -1,13 +1,14 @@
{{template "header.html" . }}
-
+
{{lang "topics_head"}}
{{if .CurrentUser.Loggedin}}
{{if .ForumList}}
-
/ {{if eq .Sort.SortBy "mostviewed" }}{{lang "topic_list.most_viewed_filter"}}{{else}}{{lang "topic_list.most_recent_filter"}}{{end}} ▾
+
/
+
{{if eq .Sort.SortBy "mostviewed" }}{{lang "topic_list.most_viewed_filter"}}{{else}}{{lang "topic_list.most_recent_filter"}}{{end}} ▾
{{lang "topic_list.most_recent_filter"}}
diff --git a/themes/nox/public/acc_panel_common.css b/themes/nox/public/acc_panel_common.css
index 094d18a3..95796397 100644
--- a/themes/nox/public/acc_panel_common.css
+++ b/themes/nox/public/acc_panel_common.css
@@ -37,4 +37,13 @@
}
.rowmenu .rowitem {
margin-bottom: 4px;
+}
+
+@media (max-width: 420px) {
+ .colstack {
+ display: block;
+ }
+ .colstack_left, .colstack_right {
+ width: auto !important;
+ }
}
\ No newline at end of file
diff --git a/themes/nox/public/main.css b/themes/nox/public/main.css
index c71ef444..eaaca860 100644
--- a/themes/nox/public/main.css
+++ b/themes/nox/public/main.css
@@ -366,10 +366,10 @@ h2 {
content: "{{lang "topic_list.moderate" . }}";
}
-.filter_opt {
+.filter_opt, .dummy_opt {
margin-right: auto;
}
-.filter_opt_label {
+.filter_opt.opt a.filter_opt_label {
font-size: 18px;
margin-left: 5px;
}
@@ -1011,7 +1011,7 @@ input[type=checkbox]:checked + label .sel {
margin-right: 0px;
width: auto;
flex-direction: row;
- margin-bottom: 12px;
+ margin-bottom: 8px;
padding: 18px;
padding-bottom: 14px;
}
@@ -1027,6 +1027,18 @@ input[type=checkbox]:checked + label .sel {
}
}
+@media(max-width: 460px) {
+ .topic_list_title, .filter_opt_sep {
+ display: none;
+ }
+ .topic_list_title_block .create_topic_opt a:before {
+ content: "{{lang "quick_topic.create_topic_button_short" . }}";
+ }
+ .topic_list_title_block .mod_opt a:before {
+ content: "{{lang "topic_list.moderate_short" . }}";
+ }
+}
+
@media(max-width: 601px) {
ul {
padding-left: 14px;
diff --git a/themes/nox/public/panel.css b/themes/nox/public/panel.css
index 438e0a51..c815470c 100644
--- a/themes/nox/public/panel.css
+++ b/themes/nox/public/panel.css
@@ -260,4 +260,12 @@ button, .formbutton, .panel_right_button:not(.has_inner_button), #panel_users .p
#panel_debug .grid_stat:not(.grid_stat_head) {
margin-bottom: 5px;
+}
+
+@media (max-width: 1000px) {
+ #panel_settings.rowlist.bgavatars.micro_grid, .micro_grid {
+ grid-gap: 12px;
+ grid-row-gap: 4px;
+ grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
+ }
}
\ No newline at end of file
diff --git a/themes/nox/public/profile.css b/themes/nox/public/profile.css
index 877c23e6..2ba11033 100644
--- a/themes/nox/public/profile.css
+++ b/themes/nox/public/profile.css
@@ -85,4 +85,17 @@
.footer .widget, .sidebar {
display: none;
+}
+
+@media(max-width: 500px) {
+ .colstack {
+ display: block;
+ }
+ #profile_left_lane {
+ margin-right: 0px;
+ margin-bottom: 12px;
+ }
+ .topBlock, .levelBlock, .passiveBlock {
+ width: auto;
+ }
}
\ No newline at end of file