add: forum posts timeline
This commit is contained in:
parent
8c779b2f2e
commit
d4ff681310
10 changed files with 159 additions and 17 deletions
|
@ -165,7 +165,7 @@
|
|||
(text "{%- endif %}")))
|
||||
(text "{%- endmacro %}")
|
||||
|
||||
(text "{% macro timelines_nav(selected=\"\", posts=\"\", questions=\"\", secondary_selected=\"posts\") -%}")
|
||||
(text "{% macro timelines_nav(selected=\"\", posts=\"\", questions=\"\", secondary_selected=\"posts\", forum_posts=\"\") -%}")
|
||||
(div
|
||||
("class" "mobile_nav mobile")
|
||||
; primary nav
|
||||
|
@ -184,7 +184,7 @@
|
|||
|
||||
(text "{% if posts and questions -%}")
|
||||
; secondary nav
|
||||
(text "{{ macros::timelines_secondary_nav(posts=posts, questions=questions, selected=secondary_selected) }}")
|
||||
(text "{{ macros::timelines_secondary_nav(posts=posts, questions=questions, selected=secondary_selected, forum_posts=forum_posts) }}")
|
||||
(text "{%- endif %}"))
|
||||
|
||||
(div
|
||||
|
@ -194,7 +194,7 @@
|
|||
|
||||
; secondary nav desktop only
|
||||
(text "{% if posts and questions -%}")
|
||||
(text "{{ macros::timelines_secondary_nav(posts=posts, questions=questions, selected=secondary_selected) }}")
|
||||
(text "{{ macros::timelines_secondary_nav(posts=posts, questions=questions, selected=secondary_selected, forum_posts=forum_posts) }}")
|
||||
(text "{%- endif %}"))
|
||||
(text "{%- endmacro %}")
|
||||
|
||||
|
@ -252,7 +252,7 @@
|
|||
(text "{%- endif %}")))
|
||||
(text "{%- endmacro %}")
|
||||
|
||||
(text "{% macro timelines_secondary_nav(posts=\"\", questions=\"\", selected=\"posts\") -%} {% if user -%}")
|
||||
(text "{% macro timelines_secondary_nav(posts=\"\", questions=\"\", selected=\"posts\", forum_posts=\"\") -%} {% if user -%}")
|
||||
(div
|
||||
("class" "pillmenu w_full")
|
||||
(a
|
||||
|
@ -261,6 +261,14 @@
|
|||
(icon (text "newspaper"))
|
||||
(span (str (text "communities:label.posts"))))
|
||||
|
||||
(text "{% if forum_posts|length > 0 -%}")
|
||||
(a
|
||||
("href" "{{ forum_posts }}")
|
||||
("class" "{% if selected == 'forum_posts' -%}active{%- endif %}")
|
||||
(icon (text "list-tree"))
|
||||
(span (str (text "communities:label.forum_posts"))))
|
||||
(text "{%- endif %}")
|
||||
|
||||
(a
|
||||
("href" "{{ questions }}")
|
||||
("class" "{% if selected == 'questions' -%}active{%- endif %}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue