github.com/Azareal/Gosora@v0.0.0-20210729070923-553e66b59003/templates/topics_inner.html (about)

     1  <main id="topicsItemList"itemscope itemtype="http://schema.org/ItemList">
     2  {{if not .CurrentUser.Loggedin}}<link rel="canonical"href="//{{.Site.URL}}/topics/{{if eq .Sort.SortBy "mostviewed"}}most-viewed/{{end}}{{if gt .Page 1}}?page={{.Page}}{{end}}">{{end}}
     3  	
     4  	<div class="rowblock rowhead topic_list_title_block{{if .CurrentUser.Loggedin}} has_opt{{end}}">
     5  		<div class="rowitem topic_list_title"><h1 itemprop="name">{{.Title}}</h1></div>
     6  		{{if .CurrentUser.Loggedin}}
     7  			<div class="optbox">
     8  			{{if .ForumList}}
     9  				<div class="opt filter_opt">
    10  					<a class="filter_opt_sep"> - </a>
    11  					<a href="#"class="filter_opt_label link_label"data-for="topic_list_filter_select">{{if eq .Sort.SortBy "mostviewed"}}{{lang "topic_list.most_viewed_filter"}}{{else if eq .Sort.SortBy "weekviews"}}{{lang "topic_list.week_views_filter"}}{{else}}{{lang "topic_list.most_recent_filter"}}{{end}} <span class="filter_opt_pointy">▾</span></a>
    12  					<div id="topic_list_filter_select"class="link_select">
    13  						<div class="link_option link_selected">
    14  							<a class="link_recent"href="/topics/{{if .SelectedFids}}?fids={{range .SelectedFids}}{{.}}{{end}}{{end}}">{{lang "topic_list.most_recent_filter"}}</a>
    15  						</div>
    16  						<div class="link_option">
    17  							<a class="link_most_viewed"href="/topics/most-viewed/{{if .SelectedFids}}?fids={{range .SelectedFids}}{{.}}{{end}}{{end}}">{{lang "topic_list.most_viewed_filter"}}</a>
    18  						</div>
    19  						<div class="link_option">
    20  							<a class="link_week_views"href="/topics/week-views/{{if .SelectedFids}}?fids={{range .SelectedFids}}{{.}}{{end}}{{end}}">{{lang "topic_list.week_views_filter"}}</a>
    21  						</div>
    22  					</div>
    23  				</div>
    24  				<div class="pre_opt auto_hide"></div>
    25  				<div class="opt create_topic_opt"title="{{lang "topic_list.create_topic_tooltip"}}"aria-label="{{lang "topic_list.create_topic_aria"}}"><a class="create_topic_link"href="/topics/create/"></a></div>
    26  				{{/** TODO: Add a permissions check for this **/}}
    27  				<div class="opt mod_opt"title="{{lang "topic_list.moderate_tooltip"}}">
    28  					<a class="moderate_link"href="#"aria-label="{{lang "topic_list.moderate_aria"}}"></a>
    29  				</div>
    30  			{{else}}<div class="opt locked_opt"title="{{lang "topics_locked_tooltip"}}"aria-label="{{lang "topics_locked_aria"}}"><a></a></div>{{end}}
    31  			</div><div style="clear:both;"></div>
    32  		{{end}}
    33  	</div>
    34  	
    35  	{{if .CurrentUser.Loggedin}}
    36  	{{template "topics_mod_floater.html" . }}
    37  	
    38  	{{if .ForumList}}
    39  	{{/** TODO: Have a seperate forum list for moving topics? Maybe an AJAX forum search compatible with plugin_guilds? **/}}
    40  	{{/** TODO: Add ARIA attributes for this **/}}
    41  	<div id="mod_topic_mover"class="modal_pane auto_hide">
    42  		<form action="/topic/move/submit/?s={{.CurrentUser.Session}}"method="post">
    43  			<input id="mover_fid"name="fid"value=0 type="hidden">
    44  			<div class="pane_header">
    45  				<h3>{{lang "topic_list.move_head"}}</h3>
    46  			</div>
    47  			<div class="pane_body">
    48  				<div class="pane_table">
    49  					{{range .ForumList}}<div id="mover_fid_{{.ID}}"data-fid="{{.ID}}"class="pane_row">{{.Name}}</div>{{end}}
    50  				</div>
    51  			</div>
    52  			<div class="pane_buttons">
    53  				<button id="mover_submit">{{lang "topic_list.move_button"}}</button>
    54  			</div>
    55  		</form>
    56  	</div>
    57  	<div class="rowblock topic_create_form quick_create_form auto_hide"aria-label="{{lang "quick_topic.aria"}}">
    58  		<form name="topic_create_form_form"id="quick_post_form"enctype="multipart/form-data"action="/topic/create/submit/?s={{.CurrentUser.Session}}"method="post"></form>
    59  		<img class="little_row_avatar"src="{{.CurrentUser.MicroAvatar}}"height=64 alt="{{lang "quick_topic.avatar_alt"}}"title="{{lang "quick_topic.avatar_tooltip"}}">
    60  		<div class="main_form">
    61  			<div class="topic_meta">
    62  				<div class="formrow topic_board_row real_first_child">
    63  					<div class="formitem"><select form="quick_post_form"id="topic_board_input"name="board">
    64  						{{range .ForumList}}<option value="{{.ID}}"{{if eq .ID $.DefaultForum}}selected{{end}}>{{.Name}}</option>{{end}}
    65  					</select></div>
    66  				</div>
    67  				<div class="formrow topic_name_row">
    68  					<div class="formitem">
    69  						<input form="quick_post_form"name="name"placeholder="{{lang "quick_topic.whatsup"}}"required>
    70  					</div>
    71  				</div>
    72  			</div>
    73  			{{template "topics_quick_topic.html" . }}
    74  		</div>
    75  	</div>
    76  		{{end}}
    77  	{{end}}
    78  	<div class="rowblock more_topic_block more_topic_block_initial">
    79  		<div class="rowitem rowmsg"><a href=""class="more_topics"></a></div>
    80  	</div>
    81  	<div id="topic_list"class="rowblock topic_list topic_list_{{.Sort.SortBy}}"aria-label="{{lang "topics_list_aria"}}">
    82  		{{range .TopicList}}{{template "topics_topic.html" . }}{{else}}<div class="rowitem passive rowmsg">{{lang "topics_no_topics"}}{{if .CurrentUser.Loggedin}}{{if .CurrentUser.Perms.CreateTopic}}&nbsp;<a href="/topics/create/">{{lang "topics_start_one"}}</a>{{end}}{{end}}</div>{{end}}
    83  	</div>
    84  	
    85  	{{template "paginator.html" . }}
    86  	</main>