* Add new followers directly to user.Followers * Update user.go * Remove useless condition * Query an update of user followers if at 0 when looking at his profile * Fix comment not appearing until you refreshed the torrent page * call ViewHandler so that comments visually update properly * Remove now useless imports * Add "uploader" userstatus in comment * GetLikings() & GetFollowers() now return count too * Don't update follower count here * Update follower count directly here * show liking count * Update user.go * Update profile.jet.html * Update torrentParam.go * Fix locked torrents that were shown even when they should not * Update torrentParam_test.go * remove inline styling * Update main.css * Update upload.jet.html * Update main.css * Update tomorrow.css * Update classic.css * Update classic_colors.css * Update index_site.jet.html * Make announcements support markdown * Add markdown form to announcement creation * fix "report" text position * Add exclude search option to exclude words * Make sure the "NameLike" value is the search query because we edit it during a search * Show search content in page title for /feed too * rollback * Add "Search" variable that shows exactly what is being searched * Use "Search.Search" variable here instead of NameLike because NameLike is edited * Update torrentParam_test.go * Update torrentParam.go * remove redundant spaces from NameLike * Update torrentParam.go * Update torrentParam.go * Update torrentParam.go * Update torrentParam.go * turn date input into type date * bigger date inputs * add support for YYYY-MM-DD dates * rollback this change * rollback * Update search.jet.html * Update helpers.go * Update template_functions.go * Update torrentParam.go * only uploader & staff can comment on locked torrents * Add "Upload to Nyaa/Sukebei" button for mods * Update torrentlist.jet.html * Update view.jet.html * Update view.jet.html * fix wrong page title for notifications page
26 lignes
1,5 Kio
HTML
26 lignes
1,5 Kio
HTML
{{ extends "layouts/index_admin" }}
|
|
{{ import "layouts/partials/helpers/errors" }}
|
|
{{block title()}}{{ if Form.ID > 0 }}{{ T("update_annoucement_panel") }}{{ else }}{{ T("create_annoucement_panel") }}{{ end }}{{end}}
|
|
{{ block content_body()}}
|
|
<div class="results box">
|
|
<h3 id="clients">{{ if Form.ID > 0 }}{{ T("update_annoucement_panel") }}{{ else }}{{ T("create_annoucement_panel") }}{{ end }}</h3>
|
|
<form style="text-align:left;padding-left:10px;padding-right:10px;" method="POST" action="{{ if Form.ID > 0}}?id={{ Form.ID }}{{end}}">
|
|
<div class="form-group">
|
|
<label for="message">{{ T("message")}}</label>
|
|
<textarea name="message" id="message" class="form-input up-input markdown-container" placeholder="{{ T("message")}}" required>{{Form.Message}}</textarea>
|
|
{{ yield errors(name="Message")}}
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="duration">{{ T("duration")}})</label>
|
|
<input type="text" name="duration" id="duration" class="form-input up-input" value="1">
|
|
{{ yield errors(name="Duration")}}
|
|
</div>
|
|
<button type="submit" class="form-input up-input btn-green">{{ T("save_changes")}}</button>
|
|
</form>
|
|
</div>
|
|
{{end}}
|
|
{{ block footer_js()}}
|
|
<script type="text/javascript" src="{{ URL.Parse("/js/simplemde.min.js") }}"></script>
|
|
<script type="text/javascript">new SimpleMDE({ element: document.getElementById("message"), spellChecker: false, showIcons: [ "strikethrough", "code", "table", "horizontal-rule" ] });</script>
|
|
{{end}}
|