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

     1  {{template "header.html" . }}
     2  <main id="forumItemList"itemscope itemtype="http://schema.org/ItemList">
     3  <link rel="canonical"href="//{{.Site.URL}}{{.Forum.Link}}{{if gt .Page 1}}?page={{.Page}}{{end}}">
     4  
     5  	<div id="forum_head_block"class="rowblock rowhead topic_list_title_block{{if .CurrentUser.Loggedin}} has_opt{{end}}">
     6  		<div class="rowitem forum_title">
     7  			<h1 itemprop="name">{{.Title}}</h1>
     8  		</div>
     9  		{{if .CurrentUser.Loggedin}}
    10  		<div class="optbox">
    11  			{{if .CurrentUser.Perms.CreateTopic}}
    12  			<div class="opt dummy_opt"></div>
    13  			<div class="pre_opt auto_hide"></div>
    14  			<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/{{.Forum.ID}}"></a></div>
    15  			{{/** TODO: Add a permissions check for this **/}}
    16  			<div class="opt mod_opt" title="{{lang "topic_list.moderate_tooltip"}}">
    17  				<a class="moderate_link" href="#" aria-label="{{lang "topic_list.moderate_aria"}}"></a>
    18  			</div>
    19  			{{else}}<div class="opt locked_opt" title="{{lang "forum_locked_tooltip"}}" aria-label="{{lang "forum_locked_aria"}}"><a></a></div>{{end}}
    20  		</div><div style="clear:both;"></div>
    21  		{{end}}
    22  	</div>
    23  	{{if .CurrentUser.Loggedin}}
    24  	{{template "topics_mod_floater.html"}}
    25  	
    26  	{{if .CurrentUser.Perms.CreateTopic}}
    27  	<div id="forum_topic_create_form" class="rowblock topic_create_form quick_create_form auto_hide" aria-label="{{lang "quick_topic.aria"}}">
    28  		<form id="quick_post_form" enctype="multipart/form-data" action="/topic/create/submit/?s={{.CurrentUser.Session}}" method="post"></form>
    29  		<img class="little_row_avatar" src="{{.CurrentUser.MicroAvatar}}" height=64 alt="{{lang "quick_topic.avatar_alt"}}" title="{{lang "quick_topic.avatar_tooltip"}}">
    30  		<input form="quick_post_form" id="topic_board_input" name="board" value="{{.Forum.ID}}" type="hidden">
    31  		<div class="main_form">
    32  			<div class="topic_meta">
    33  				<div class="formrow topic_name_row real_first_child">
    34  					<div class="formitem">
    35  						<input form="quick_post_form" name="name" placeholder="{{lang "quick_topic.whatsup"}}" required>
    36  					</div>
    37  				</div>
    38  			</div>
    39  			{{template "topics_quick_topic.html" . }}
    40  		</div>
    41  	</div>
    42  	{{end}}
    43  	{{end}}
    44  	<div id="forum_topic_list" class="rowblock micro_grid" aria-label="{{lang "forum_list_aria"}}" style="grid-template-columns:repeat(auto-fit,minmax(130px,1fr));">
    45  		{{range .ItemList}}<div class="rowitem" data-tid="{{.ID}}">
    46  		<div>
    47  			<a class="rowtopic" href="{{.Link}}" itemprop="itemListElement"><img src="{{.Content}}" style="width:100%;height:160px;"></a>
    48  			<br><a class="rowsmall starter" href="{{.Link}}">{{.Title}}</a>
    49  		</div>
    50  		<!--<div class="topic_left passive datarow">
    51  			<a href="{{.Creator.Link}}"><img src="{{.Creator.MicroAvatar}}" height=64 alt="Avatar" title="{{.Creator.Name}}'s Avatar" aria-hidden="true"></a>
    52  			<span class="topic_inner_left">
    53  				<a class="rowtopic" href="{{.Link}}" itemprop="itemListElement" title="{{.Title}}"><span>{{.Title}}</span></a>
    54  				<br><a class="rowsmall starter" href="{{.Creator.Link}}" title="{{.Creator.Name}}">{{.Creator.Name}}</a>
    55  			</span>
    56  		</div>-->
    57  		<!--<div class="topic_middle">
    58  			<div class="topic_middle_inside rowsmall">
    59  				<span class="replyCount">{{.PostCount}}&nbsp;{{lang "topic_list.replies_suffix"}}</span>
    60  				<span class="likeCount">{{.LikeCount}}&nbsp;{{lang "topic_list.likes_suffix"}}</span>
    61  				<span class="viewCount">{{.ViewCount}}&nbsp;{{lang "topic_list.views_suffix"}}</span>
    62  			</div>
    63  		</div>
    64  		<div class="topic_right passive datarow">
    65  			<div class="topic_right_inside">
    66  				<a href="{{.LastUser.Link}}"><img src="{{.LastUser.MicroAvatar}}" height=64 alt="Avatar" title="{{.LastUser.Name}}'s Avatar" aria-hidden="true"></a>
    67  				<span>
    68  					<a href="{{.LastUser.Link}}" class="lastName" style="font-size: 14px;" title="{{.LastUser.Name}}">{{.LastUser.Name}}</a><br>
    69  					<a href="{{.Link}}?page={{.LastPage}}{{if .LastReplyID}}#post-{{.LastReplyID}}{{end}}" class="rowsmall lastReplyAt" title="{{abstime .LastReplyAt}}">{{reltime .LastReplyAt}}</a>
    70  				</span>
    71  			</div>
    72  		</div>-->
    73  		</div>{{else}}<div class="rowitem passive rowmsg">{{lang "forum_no_topics"}}{{if .CurrentUser.Loggedin}}{{if .CurrentUser.Perms.CreateTopic}} <a href="/topics/create/{{.Forum.ID}}">{{lang "forum_start_one"}}</a>{{end}}{{end}}</div>{{end}}
    74  	</div>
    75  
    76  {{template "paginator.html" . }}
    77  </main>
    78  {{template "footer.html" . }}