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

     1  <div class="colstack_item colstack_head rowhead">
     2  	<div class="rowitem">
     3  		<h1>{{lang "convos_head"}}</h1>
     4  		{{if .CurrentUser.Perms.UseConvos or .CurrentUser.Perms.UseConvosIfWithMod}}<h2><a class="create_convo_link"href="/user/convos/create/">{{lang "convos_create"}}</a></h2>{{end}}
     5  	</div>
     6  </div>
     7  {{if .CurrentUser.Perms.UseConvos or .CurrentUser.Perms.UseConvosIfWithMod}}
     8  <div class="colstack_item the_form convo_create_form auto_hide">
     9  	<form action="/user/convos/create/submit/?s={{.CurrentUser.Session}}"method="post">
    10  		<div class="formrow real_first_child">
    11  			<div class="formitem formlabel"><a>{{lang "create_convo_recp"}}</a></div>
    12  			<div class="formitem"><input name="recp"type="text"></div>
    13  		</div>
    14  		<div class="formrow">
    15  			<div class="formitem"><textarea name="body"></textarea></div>
    16  		</div>
    17  		<div class="formrow">
    18  			<div class="formitem">
    19  				<button name="panel-button"class="formbutton">{{lang "create_convo_button"}}</button>
    20  				<button class="formbutton close_form">{{lang "quick_topic.cancel_button"}}</button>
    21  			</div>
    22  		</div>
    23  	</form>
    24  </div>
    25  {{end}}
    26  <div class="colstack_item convos_list rowlist">
    27  	{{range .Convos}}
    28  	<div class="rowitem">
    29  		<span class="to_left">
    30  			{{if .OneOnOne}}{{range .ShortUsers}}<img class="bgsub"src="{{.MicroAvatar}}"height=48 width=48>{{end}}{{end}}
    31  			<a href="/user/convo/{{.ID}}">{{range .ShortUsers}}<span class="convos_item_user">{{.Name}}</span>&nbsp;{{end}}</a></span></a>
    32  		</span>
    33  		<span title="{{abstime .LastReplyAt}}"class="to_right">{{reltime .LastReplyAt}}</span>
    34  		<div style="clear:both;"></div>
    35  	</div>{{else}}
    36  	<div class="rowitem">{{lang "convos_none"}}</div>
    37  	{{end}}
    38  </div>
    39  {{template "paginator.html" . }}