| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076 |
- // Code generated by go generate; DO NOT EDIT.
- // 2017-12-01 22:52:50.615711322 -0800 PST m=+0.016980549
- package template
- var templateViewsMap = map[string]string{
- "about": `{{ define "title"}}{{ t "About" }}{{ end }}
- {{ define "content"}}
- <section class="page-header">
- <h1>{{ t "About" }}</h1>
- <ul>
- <li>
- <a href="{{ route "settings" }}">{{ t "Settings" }}</a>
- </li>
- <li>
- <a href="{{ route "integrations" }}">{{ t "Integrations" }}</a>
- </li>
- <li>
- <a href="{{ route "sessions" }}">{{ t "Sessions" }}</a>
- </li>
- {{ if .user.IsAdmin }}
- <li>
- <a href="{{ route "users" }}">{{ t "Users" }}</a>
- </li>
- {{ end }}
- </ul>
- </section>
- <div class="panel">
- <h3>{{ t "Version" }}</h3>
- <ul>
- <li><strong>{{ t "Version:" }}</strong> {{ .version }}</li>
- <li><strong>{{ t "Build Date:" }}</strong> {{ .build_date }}</li>
- </ul>
- </div>
- <div class="panel">
- <h3>{{ t "Authors" }}</h3>
- <ul>
- <li><strong>{{ t "Author:" }}</strong> Frédéric Guillot</li>
- <li><strong>{{ t "License:" }}</strong> Apache 2.0</li>
- </ul>
- </div>
- {{ end }}
- `,
- "add_subscription": `{{ define "title"}}{{ t "New Subscription" }}{{ end }}
- {{ define "content"}}
- <section class="page-header">
- <h1>{{ t "New Subscription" }}</h1>
- <ul>
- <li>
- <a href="{{ route "feeds" }}">{{ t "Feeds" }}</a>
- </li>
- <li>
- <a href="{{ route "export" }}">{{ t "Export" }}</a>
- </li>
- <li>
- <a href="{{ route "import" }}">{{ t "Import" }}</a>
- </li>
- </ul>
- </section>
- {{ if not .categories }}
- <p class="alert alert-error">{{ t "There is no category. You must have at least one category." }}</p>
- {{ else }}
- <form action="{{ route "submitSubscription" }}" method="post" autocomplete="off">
- <input type="hidden" name="csrf" value="{{ .csrf }}">
- {{ if .errorMessage }}
- <div class="alert alert-error">{{ t .errorMessage }}</div>
- {{ end }}
- <label for="form-url">{{ t "URL" }}</label>
- <input type="url" name="url" id="form-url" placeholder="https://domain.tld/" value="{{ .form.URL }}" required autofocus>
- <label for="form-category">{{ t "Category" }}</label>
- <select id="form-category" name="category_id">
- {{ range .categories }}
- <option value="{{ .ID }}">{{ .Title }}</option>
- {{ end }}
- </select>
- <div class="buttons">
- <button type="submit" class="button button-primary" data-label-loading="{{ t "Loading..." }}">{{ t "Find a subscription" }}</button>
- </div>
- </form>
- {{ end }}
- {{ end }}
- `,
- "categories": `{{ define "title"}}{{ t "Categories" }} ({{ .total }}){{ end }}
- {{ define "content"}}
- <section class="page-header">
- <h1>{{ t "Categories" }} ({{ .total }})</h1>
- <ul>
- <li>
- <a href="{{ route "createCategory" }}">{{ t "Create a category" }}</a>
- </li>
- </ul>
- </section>
- {{ if not .categories }}
- <p class="alert alert-error">{{ t "There is no category." }}</p>
- {{ else }}
- <div class="items">
- {{ range .categories }}
- <article class="item">
- <div class="item-header">
- <span class="item-title">
- <a href="{{ route "categoryEntries" "categoryID" .ID }}">{{ .Title }}</a>
- </span>
- </div>
- <div class="item-meta">
- <ul>
- <li>
- {{ if eq .FeedCount 0 }}
- {{ t "No feed." }}
- {{ else }}
- {{ plural "plural.categories.feed_count" .FeedCount .FeedCount }}
- {{ end }}
- </li>
- </ul>
- <ul>
- <li>
- <a href="{{ route "editCategory" "categoryID" .ID }}">{{ t "Edit" }}</a>
- </li>
- {{ if eq .FeedCount 0 }}
- <li>
- <a href="#"
- data-confirm="true"
- data-label-question="{{ t "Are you sure?" }}"
- data-label-yes="{{ t "yes" }}"
- data-label-no="{{ t "no" }}"
- data-label-loading="{{ t "Work in progress..." }}"
- data-url="{{ route "removeCategory" "categoryID" .ID }}">{{ t "Remove" }}</a>
- </li>
- {{ end }}
- </ul>
- </div>
- </article>
- {{ end }}
- </div>
- {{ end }}
- {{ end }}
- `,
- "category_entries": `{{ define "title"}}{{ .category.Title }} ({{ .total }}){{ end }}
- {{ define "content"}}
- <section class="page-header">
- <h1>{{ .category.Title }} ({{ .total }})</h1>
- {{ if .entries }}
- <ul>
- <li>
- <a href="#" data-on-click="markPageAsRead">{{ t "Mark this page as read" }}</a>
- </li>
- </ul>
- {{ end }}
- </section>
- {{ if not .entries }}
- <p class="alert">{{ t "There is no article in this category." }}</p>
- {{ else }}
- <div class="items">
- {{ range .entries }}
- <article class="item item-status-{{ .Status }}" data-id="{{ .ID }}">
- <div class="item-header">
- <span class="item-title">
- {{ if ne .Feed.Icon.IconID 0 }}
- <img src="{{ route "icon" "iconID" .Feed.Icon.IconID }}" width="16" height="16">
- {{ end }}
- <a href="{{ route "categoryEntry" "categoryID" .Feed.Category.ID "entryID" .ID }}">{{ .Title }}</a>
- </span>
- <span class="category"><a href="{{ route "categoryEntries" "categoryID" .Feed.Category.ID }}">{{ .Feed.Category.Title }}</a></span>
- </div>
- <div class="item-meta">
- <ul>
- <li>
- <a href="{{ route "feedEntries" "feedID" .Feed.ID }}" title="{{ .Feed.Title }}">{{ domain .Feed.SiteURL }}</a>
- </li>
- <li>
- <time datetime="{{ isodate .Date }}" title="{{ isodate .Date }}">{{ elapsed .Date }}</time>
- </li>
- <li>
- <a href="{{ .URL }}" target="_blank" rel="noopener noreferrer" referrerpolicy="no-referrer" data-original-link="true">{{ t "Original" }}</a>
- </li>
- </ul>
- </div>
- </article>
- {{ end }}
- </div>
- {{ template "pagination" .pagination }}
- {{ end }}
- {{ end }}
- `,
- "choose_subscription": `{{ define "title"}}{{ t "Choose a Subscription" }}{{ end }}
- {{ define "content"}}
- <section class="page-header">
- <h1>{{ t "New Subscription" }}</h1>
- <ul>
- <li>
- <a href="{{ route "feeds" }}">{{ t "Feeds" }}</a>
- </li>
- <li>
- <a href="{{ route "export" }}">{{ t "Export" }}</a>
- </li>
- <li>
- <a href="{{ route "import" }}">{{ t "Import" }}</a>
- </li>
- </ul>
- </section>
- <form action="{{ route "chooseSubscription" }}" method="POST">
- <input type="hidden" name="csrf" value="{{ .csrf }}">
- <input type="hidden" name="category_id" value="{{ .categoryID }}">
- <h3>{{ t "Choose a Subscription" }}</h3>
- {{ range .subscriptions }}
- <div class="radio-group">
- <label title="{{ .URL }}"><input type="radio" name="url" value="{{ .URL }}"> {{ .Title }}</label> ({{ .Type }})
- <small title="Type = {{ .Type }}"><a href="{{ .URL }}" target="_blank" rel="noopener noreferrer" referrerpolicy="no-referrer">{{ .URL }}</a></small>
- </div>
- {{ end }}
- <div class="buttons">
- <button type="submit" class="button button-primary" data-label-loading="{{ t "Loading..." }}">{{ t "Subscribe" }}</button>
- </div>
- </form>
- {{ end }}
- `,
- "create_category": `{{ define "title"}}{{ t "New Category" }}{{ end }}
- {{ define "content"}}
- <section class="page-header">
- <h1>{{ t "New Category" }}</h1>
- <ul>
- <li>
- <a href="{{ route "categories" }}">{{ t "Categories" }}</a>
- </li>
- </ul>
- </section>
- <form action="{{ route "saveCategory" }}" method="post" autocomplete="off">
- <input type="hidden" name="csrf" value="{{ .csrf }}">
- {{ if .errorMessage }}
- <div class="alert alert-error">{{ t .errorMessage }}</div>
- {{ end }}
- <label for="form-title">{{ t "Title" }}</label>
- <input type="text" name="title" id="form-title" value="{{ .form.Title }}" required autofocus>
- <div class="buttons">
- <button type="submit" class="button button-primary" data-label-loading="{{ t "Loading..." }}">{{ t "Save" }}</button> {{ t "or" }} <a href="{{ route "categories" }}">{{ t "cancel" }}</a>
- </div>
- </form>
- {{ end }}
- `,
- "create_user": `{{ define "title"}}{{ t "New User" }}{{ end }}
- {{ define "content"}}
- <section class="page-header">
- <h1>{{ t "New User" }}</h1>
- <ul>
- <li>
- <a href="{{ route "settings" }}">{{ t "Settings" }}</a>
- </li>
- <li>
- <a href="{{ route "integrations" }}">{{ t "Integrations" }}</a>
- </li>
- <li>
- <a href="{{ route "sessions" }}">{{ t "Sessions" }}</a>
- </li>
- <li>
- <a href="{{ route "users" }}">{{ t "Users" }}</a>
- </li>
- </ul>
- </section>
- <form action="{{ route "saveUser" }}" method="post" autocomplete="off">
- <input type="hidden" name="csrf" value="{{ .csrf }}">
- {{ if .errorMessage }}
- <div class="alert alert-error">{{ t .errorMessage }}</div>
- {{ end }}
- <label for="form-username">{{ t "Username" }}</label>
- <input type="text" name="username" id="form-username" value="{{ .form.Username }}" required autofocus>
- <label for="form-password">{{ t "Password" }}</label>
- <input type="password" name="password" id="form-password" value="{{ .form.Password }}" required>
- <label for="form-confirmation">{{ t "Confirmation" }}</label>
- <input type="password" name="confirmation" id="form-confirmation" value="{{ .form.Confirmation }}" required>
- <label><input type="checkbox" name="is_admin" value="1" {{ if .form.IsAdmin }}checked="checked"{{ end }}> {{ t "Administrator" }}</label>
- <div class="buttons">
- <button type="submit" class="button button-primary" data-label-loading="{{ t "Loading..." }}">{{ t "Save" }}</button> {{ t "or" }} <a href="{{ route "users" }}">{{ t "cancel" }}</a>
- </div>
- </form>
- {{ end }}
- `,
- "edit_category": `{{ define "title"}}{{ t "Edit Category: %s" .category.Title }}{{ end }}
- {{ define "content"}}
- <section class="page-header">
- <h1>{{ t "Edit Category: %s" .category.Title }}</h1>
- <ul>
- <li>
- <a href="{{ route "categories" }}">{{ t "Categories" }}</a>
- </li>
- <li>
- <a href="{{ route "createCategory" }}">{{ t "Create a category" }}</a>
- </li>
- </ul>
- </section>
- <form action="{{ route "updateCategory" "categoryID" .category.ID }}" method="post" autocomplete="off">
- <input type="hidden" name="csrf" value="{{ .csrf }}">
- {{ if .errorMessage }}
- <div class="alert alert-error">{{ t .errorMessage }}</div>
- {{ end }}
- <label for="form-title">{{ t "Title" }}</label>
- <input type="text" name="title" id="form-title" value="{{ .form.Title }}" required autofocus>
- <div class="buttons">
- <button type="submit" class="button button-primary" data-label-loading="{{ t "Loading..." }}">{{ t "Update" }}</button> {{ t "or" }} <a href="{{ route "categories" }}">{{ t "cancel" }}</a>
- </div>
- </form>
- {{ end }}
- `,
- "edit_feed": `{{ define "title"}}{{ t "Edit Feed: %s" .feed.Title }}{{ end }}
- {{ define "content"}}
- <section class="page-header">
- <h1>{{ .feed.Title }}</h1>
- <ul>
- <li>
- <a href="{{ route "feeds" }}">{{ t "Feeds" }}</a>
- </li>
- <li>
- <a href="{{ route "addSubscription" }}">{{ t "Add subscription" }}</a>
- </li>
- <li>
- <a href="{{ route "export" }}">{{ t "Export" }}</a>
- </li>
- <li>
- <a href="{{ route "import" }}">{{ t "Import" }}</a>
- </li>
- </ul>
- </section>
- {{ if not .categories }}
- <p class="alert alert-error">{{ t "There is no category!" }}</p>
- {{ else }}
- {{ if ne .feed.ParsingErrorCount 0 }}
- <div class="alert alert-error">
- <h3>{{ t "Last Parsing Error" }}</h3>
- {{ .feed.ParsingErrorMsg }}
- </div>
- {{ end }}
- <form action="{{ route "updateFeed" "feedID" .feed.ID }}" method="post" autocomplete="off">
- <input type="hidden" name="csrf" value="{{ .csrf }}">
- {{ if .errorMessage }}
- <div class="alert alert-error">{{ t .errorMessage }}</div>
- {{ end }}
- <label for="form-title">{{ t "Title" }}</label>
- <input type="text" name="title" id="form-title" value="{{ .form.Title }}" required autofocus>
- <label for="form-site-url">{{ t "Site URL" }}</label>
- <input type="url" name="site_url" id="form-site-url" placeholder="https://domain.tld/" value="{{ .form.SiteURL }}" required>
- <label for="form-feed-url">{{ t "Feed URL" }}</label>
- <input type="url" name="feed_url" id="form-feed-url" placeholder="https://domain.tld/" value="{{ .form.FeedURL }}" required>
- <label for="form-category">{{ t "Category" }}</label>
- <select id="form-category" name="category_id">
- {{ range .categories }}
- <option value="{{ .ID }}" {{ if eq .ID $.form.CategoryID }}selected="selected"{{ end }}>{{ .Title }}</option>
- {{ end }}
- </select>
- <div class="buttons">
- <button type="submit" class="button button-primary" data-label-loading="{{ t "Loading..." }}">{{ t "Update" }}</button> {{ t "or" }} <a href="{{ route "feeds" }}">{{ t "cancel" }}</a>
- </div>
- </form>
- {{ end }}
- {{ end }}`,
- "edit_user": `{{ define "title"}}{{ t "Edit user: %s" .selected_user.Username }}{{ end }}
- {{ define "content"}}
- <section class="page-header">
- <h1>{{ t "Edit user %s" .selected_user.Username }}"</h1>
- <ul>
- <li>
- <a href="{{ route "settings" }}">{{ t "Settings" }}</a>
- </li>
- <li>
- <a href="{{ route "integrations" }}">{{ t "Integrations" }}</a>
- </li>
- <li>
- <a href="{{ route "sessions" }}">{{ t "Sessions" }}</a>
- </li>
- <li>
- <a href="{{ route "users" }}">{{ t "Users" }}</a>
- </li>
- <li>
- <a href="{{ route "createUser" }}">{{ t "Add user" }}</a>
- </li>
- </ul>
- </section>
- <form action="{{ route "updateUser" "userID" .selected_user.ID }}" method="post" autocomplete="off">
- <input type="hidden" name="csrf" value="{{ .csrf }}">
- {{ if .errorMessage }}
- <div class="alert alert-error">{{ t .errorMessage }}</div>
- {{ end }}
- <label for="form-username">{{ t "Username" }}</label>
- <input type="text" name="username" id="form-username" value="{{ .form.Username }}" required autofocus>
- <label for="form-password">{{ t "Password" }}</label>
- <input type="password" name="password" id="form-password" value="{{ .form.Password }}">
- <label for="form-confirmation">{{ t "Confirmation" }}</label>
- <input type="password" name="confirmation" id="form-confirmation" value="{{ .form.Confirmation }}">
- <label><input type="checkbox" name="is_admin" value="1" {{ if .form.IsAdmin }}checked="checked"{{ end }}> {{ t "Administrator" }}</label>
- <div class="buttons">
- <button type="submit" class="button button-primary" data-label-loading="{{ t "Loading..." }}">{{ t "Update" }}</button> {{ t "or" }} <a href="{{ route "users" }}">{{ t "cancel" }}</a>
- </div>
- </form>
- {{ end }}
- `,
- "entry": `{{ define "title"}}{{ .entry.Title }}{{ end }}
- {{ define "content"}}
- <section class="entry">
- <header class="entry-header">
- <h1>
- <a href="{{ .entry.URL }}" target="_blank" rel="noopener noreferrer" referrerpolicy="no-referrer">{{ .entry.Title }}</a>
- </h1>
- <div class="entry-meta">
- <span class="entry-website">
- {{ if ne .entry.Feed.Icon.IconID 0 }}
- <img src="{{ route "icon" "iconID" .entry.Feed.Icon.IconID }}" width="16" height="16">
- {{ end }}
- <a href="{{ route "feedEntries" "feedID" .entry.Feed.ID }}">{{ .entry.Feed.Title }}</a>
- </span>
- {{ if .entry.Author }}
- <span class="entry-author">
- {{ if isEmail .entry.Author }}
- - <a href="mailto:{{ .entry.Author }}">{{ .entry.Author }}</a>
- {{ else }}
- – <em>{{ .entry.Author }}</em>
- {{ end }}
- </span>
- {{ end }}
- <span class="category">
- <a href="{{ route "categoryEntries" "categoryID" .entry.Feed.Category.ID }}">{{ .entry.Feed.Category.Title }}</a>
- </span>
- </div>
- <div class="entry-date">
- <time datetime="{{ isodate .entry.Date }}" title="{{ isodate .entry.Date }}">{{ elapsed .entry.Date }}</time>
- </div>
- </header>
- <div class="pagination-top">
- {{ template "entry_pagination" . }}
- </div>
- <article class="entry-content">
- {{ noescape (proxyFilter .entry.Content) }}
- </article>
- {{ if .entry.Enclosures }}
- <aside class="entry-enclosures">
- <h3>{{ t "Attachments" }}</h3>
- {{ range .entry.Enclosures }}
- <div class="entry-enclosure">
- {{ if hasPrefix .MimeType "audio/" }}
- <div class="enclosure-audio">
- <audio controls preload="metadata">
- <source src="{{ .URL }}" type="{{ .MimeType }}">
- </audio>
- </div>
- {{ else if hasPrefix .MimeType "video/" }}
- <div class="enclosure-video">
- <video controls preload="metadata">
- <source src="{{ .URL }}" type="{{ .MimeType }}">
- </video>
- </div>
- {{ else if hasPrefix .MimeType "image/" }}
- <div class="enclosure-image">
- <img src="{{ proxyURL .URL }}" title="{{ .URL }} ({{ .MimeType }})" alt="{{ .URL }} ({{ .MimeType }})">
- </div>
- {{ end }}
- <div class="entry-enclosure-download">
- <a href="{{ .URL }}" title="{{ .URL }} ({{ .MimeType }})" target="_blank" rel="noopener noreferrer" referrerpolicy="no-referrer">{{ t "Download" }}</a>
- <small>({{ .URL }})</small>
- </div>
- </div>
- {{ end }}
- </aside>
- {{ end }}
- </section>
- <div class="pagination-bottom">
- {{ template "entry_pagination" . }}
- </div>
- {{ end }}
- `,
- "feed_entries": `{{ define "title"}}{{ .feed.Title }} ({{ .total }}){{ end }}
- {{ define "content"}}
- <section class="page-header">
- <h1>{{ .feed.Title }} ({{ .total }})</h1>
- <ul>
- <li>
- <a href="{{ route "refreshFeed" "feedID" .feed.ID }}">{{ t "Refresh" }}</a>
- </li>
- <li>
- <a href="{{ route "editFeed" "feedID" .feed.ID }}">{{ t "Edit" }}</a>
- </li>
- {{ if .entries }}
- <li>
- <a href="#" data-on-click="markPageAsRead">{{ t "Mark this page as read" }}</a>
- </li>
- {{ end }}
- </ul>
- </section>
- {{ if ne .feed.ParsingErrorCount 0 }}
- <div class="alert alert-error">
- <h3>{{ t "There is a problem with this feed" }}</h3>
- {{ .feed.ParsingErrorMsg }}
- </div>
- {{ else if not .entries }}
- <p class="alert">{{ t "There is no article for this feed." }}</p>
- {{ else }}
- <div class="items">
- {{ range .entries }}
- <article class="item item-status-{{ .Status }}" data-id="{{ .ID }}">
- <div class="item-header">
- <span class="item-title">
- {{ if ne .Feed.Icon.IconID 0 }}
- <img src="{{ route "icon" "iconID" .Feed.Icon.IconID }}" width="16" height="16">
- {{ end }}
- <a href="{{ route "feedEntry" "feedID" .Feed.ID "entryID" .ID }}">{{ .Title }}</a>
- </span>
- <span class="category"><a href="{{ route "categoryEntries" "categoryID" .Feed.Category.ID }}">{{ .Feed.Category.Title }}</a></span>
- </div>
- <div class="item-meta">
- <ul>
- <li>
- <a href="{{ route "feedEntries" "feedID" .Feed.ID }}" title="{{ .Feed.Title }}">{{ domain .Feed.SiteURL }}</a>
- </li>
- <li>
- <time datetime="{{ isodate .Date }}" title="{{ isodate .Date }}">{{ elapsed .Date }}</time>
- </li>
- <li>
- <a href="{{ .URL }}" target="_blank" rel="noopener noreferrer" referrerpolicy="no-referrer" data-original-link="true">{{ t "Original" }}</a>
- </li>
- </ul>
- </div>
- </article>
- {{ end }}
- </div>
- {{ template "pagination" .pagination }}
- {{ end }}
- {{ end }}
- `,
- "feeds": `{{ define "title"}}{{ t "Feeds" }} ({{ .total }}){{ end }}
- {{ define "content"}}
- <section class="page-header">
- <h1>{{ t "Feeds" }} ({{ .total }})</h1>
- <ul>
- <li>
- <a href="{{ route "addSubscription" }}">{{ t "Add subscription" }}</a>
- </li>
- <li>
- <a href="{{ route "export" }}">{{ t "Export" }}</a>
- </li>
- <li>
- <a href="{{ route "import" }}">{{ t "Import" }}</a>
- </li>
- <li>
- <a href="{{ route "refreshAllFeeds" }}">{{ t "Refresh all feeds in the background" }}</a>
- </li>
- </ul>
- </section>
- {{ if not .feeds }}
- <p class="alert">{{ t "You don't have any subscription." }}</p>
- {{ else }}
- <div class="items">
- {{ range .feeds }}
- <article class="item">
- <div class="item-header">
- <span class="item-title">
- {{ if ne .Icon.IconID 0 }}
- <img src="{{ route "icon" "iconID" .Icon.IconID }}" width="16" height="16">
- {{ end }}
- <a href="{{ route "feedEntries" "feedID" .ID }}">{{ .Title }}</a>
- </span>
- <span class="category">
- <a href="{{ route "categoryEntries" "categoryID" .Category.ID }}">{{ .Category.Title }}</a>
- </span>
- </div>
- <div class="item-meta">
- <ul>
- <li>
- <a href="{{ .SiteURL }}" target="_blank" rel="noopener noreferrer" referrerpolicy="no-referrer" data-original-link="true">{{ domain .SiteURL }}</a>
- </li>
- <li>
- {{ t "Last check:" }} <time datetime="{{ isodate .CheckedAt }}" title="{{ isodate .CheckedAt }}">{{ elapsed .CheckedAt }}</time>
- </li>
- {{ if ne .ParsingErrorCount 0 }}
- <li><strong title="{{ .ParsingErrorMsg }}">{{ plural "plural.feed.error_count" .ParsingErrorCount .ParsingErrorCount }}</strong></li>
- {{ end }}
- </ul>
- <ul>
- <li>
- <a href="{{ route "refreshFeed" "feedID" .ID }}">{{ t "Refresh" }}</a>
- </li>
- <li>
- <a href="{{ route "editFeed" "feedID" .ID }}">{{ t "Edit" }}</a>
- </li>
- <li>
- <a href="#"
- data-confirm="true"
- data-label-question="{{ t "Are you sure?" }}"
- data-label-yes="{{ t "yes" }}"
- data-label-no="{{ t "no" }}"
- data-label-loading="{{ t "Work in progress..." }}"
- data-url="{{ route "removeFeed" "feedID" .ID }}">{{ t "Remove" }}</a>
- </li>
- </ul>
- </div>
- </article>
- {{ end }}
- </div>
- {{ end }}
- {{ end }}
- `,
- "history": `{{ define "title"}}{{ t "History" }} ({{ .total }}){{ end }}
- {{ define "content"}}
- <section class="page-header">
- <h1>{{ t "History" }} ({{ .total }})</h1>
- {{ if .entries }}
- <ul>
- <li>
- <a href="{{ route "flushHistory" }}">{{ t "Flush history" }}</a>
- </li>
- </ul>
- {{ end }}
- </section>
- {{ if not .entries }}
- <p class="alert alert-info">{{ t "There is no history at the moment." }}</p>
- {{ else }}
- <div class="items">
- {{ range .entries }}
- <article class="item item-status-{{ .Status }}" data-id="{{ .ID }}">
- <div class="item-header">
- <span class="item-title">
- {{ if ne .Feed.Icon.IconID 0 }}
- <img src="{{ route "icon" "iconID" .Feed.Icon.IconID }}" width="16" height="16">
- {{ end }}
- <a href="{{ route "readEntry" "entryID" .ID }}">{{ .Title }}</a>
- </span>
- <span class="category"><a href="{{ route "categoryEntries" "categoryID" .Feed.Category.ID }}">{{ .Feed.Category.Title }}</a></span>
- </div>
- <div class="item-meta">
- <ul>
- <li>
- <a href="{{ route "feedEntries" "feedID" .Feed.ID }}" title="{{ .Feed.Title }}">{{ domain .Feed.SiteURL }}</a>
- </li>
- <li>
- <time datetime="{{ isodate .Date }}" title="{{ isodate .Date }}">{{ elapsed .Date }}</time>
- </li>
- <li>
- <a href="{{ .URL }}" target="_blank" rel="noopener noreferrer" referrerpolicy="no-referrer" data-original-link="true">{{ t "Original" }}</a>
- </li>
- </ul>
- </div>
- </article>
- {{ end }}
- </div>
- {{ template "pagination" .pagination }}
- {{ end }}
- {{ end }}
- `,
- "import": `{{ define "title"}}{{ t "Import" }}{{ end }}
- {{ define "content"}}
- <section class="page-header">
- <h1>{{ t "Import" }}</h1>
- <ul>
- <li>
- <a href="{{ route "feeds" }}">{{ t "Feeds" }}</a>
- </li>
- <li>
- <a href="{{ route "addSubscription" }}">{{ t "Add subscription" }}</a>
- </li>
- <li>
- <a href="{{ route "export" }}">{{ t "Export" }}</a>
- </li>
- </ul>
- </section>
- <form action="{{ route "uploadOPML" }}" method="post" enctype="multipart/form-data">
- <input type="hidden" name="csrf" value="{{ .csrf }}">
- {{ if .errorMessage }}
- <div class="alert alert-error">{{ t .errorMessage }}</div>
- {{ end }}
- <label for="form-file">{{ t "OPML file" }}</label>
- <input type="file" name="file" id="form-file">
- <div class="buttons">
- <button type="submit" class="button button-primary" data-label-loading="{{ t "Loading..." }}">{{ t "Import" }}</button>
- </div>
- </form>
- {{ end }}
- `,
- "integrations": `{{ define "title"}}{{ t "Integrations" }}{{ end }}
- {{ define "content"}}
- <section class="page-header">
- <h1>{{ t "Integrations" }}</h1>
- <ul>
- <li>
- <a href="{{ route "settings" }}">{{ t "Settings" }}</a>
- </li>
- <li>
- <a href="{{ route "sessions" }}">{{ t "Sessions" }}</a>
- </li>
- {{ if .user.IsAdmin }}
- <li>
- <a href="{{ route "users" }}">{{ t "Users" }}</a>
- </li>
- {{ end }}
- <li>
- <a href="{{ route "about" }}">{{ t "About" }}</a>
- </li>
- </ul>
- </section>
- <div class="panel">
- <h3>{{ t "Bookmarklet" }}</h3>
- <p>{{ t "This special link allows you to subscribe to a website directly by using a bookmark in your web browser." }}</p>
- <div class="bookmarklet">
- <a href="javascript:location.href='{{ baseURL }}{{ route "bookmarklet" }}?uri='+encodeURIComponent(window.location.href)">{{ t "Add to Miniflux" }}</a>
- </div>
- <p>{{ t "Drag and drop this link to your bookmarks." }}</p>
- </div>
- {{ end }}
- `,
- "login": `{{ define "title"}}{{ t "Sign In" }}{{ end }}
- {{ define "content"}}
- <section class="login-form">
- <form action="{{ route "checkLogin" }}" method="post">
- <input type="hidden" name="csrf" value="{{ .csrf }}">
- {{ if .errorMessage }}
- <div class="alert alert-error">{{ t .errorMessage }}</div>
- {{ end }}
- <label for="form-username">{{ t "Username" }}</label>
- <input type="text" name="username" id="form-username" required autofocus>
- <label for="form-password">{{ t "Password" }}</label>
- <input type="password" name="password" id="form-password" required>
- <div class="buttons">
- <button type="submit" class="button button-primary" data-label-loading="{{ t "Loading..." }}">{{ t "Sign in" }}</button>
- </div>
- </form>
- {{ if hasOAuth2Provider "google" }}
- <div class="oauth2">
- <a href="{{ route "oauth2Redirect" "provider" "google" }}">{{ t "Sign in with Google" }}</a>
- </div>
- {{ end }}
- </section>
- {{ end }}
- `,
- "sessions": `{{ define "title"}}{{ t "Sessions" }}{{ end }}
- {{ define "content"}}
- <section class="page-header">
- <h1>{{ t "Sessions" }}</h1>
- <ul>
- <li>
- <a href="{{ route "settings" }}">{{ t "Settings" }}</a>
- </li>
- <li>
- <a href="{{ route "integrations" }}">{{ t "Integrations" }}</a>
- </li>
- <li>
- <a href="{{ route "users" }}">{{ t "Users" }}</a>
- </li>
- <li>
- <a href="{{ route "createUser" }}">{{ t "Add user" }}</a>
- </li>
- </ul>
- </section>
- <table>
- <tr>
- <th>{{ t "Date" }}</th>
- <th>{{ t "IP Address" }}</th>
- <th>{{ t "User Agent" }}</th>
- <th>{{ t "Actions" }}</th>
- </tr>
- {{ range .sessions }}
- <tr {{ if eq .Token $.currentSessionToken }}class="row-highlighted"{{ end }}>
- <td class="column-20" title="{{ isodate .CreatedAt }}">{{ elapsed .CreatedAt }}</td>
- <td class="column-20" title="{{ .IP }}">{{ .IP }}</td>
- <td title="{{ .UserAgent }}">{{ .UserAgent }}</td>
- <td class="column-20">
- {{ if eq .Token $.currentSessionToken }}
- {{ t "Current session" }}
- {{ else }}
- <a href="#"
- data-confirm="true"
- data-label-question="{{ t "Are you sure?" }}"
- data-label-yes="{{ t "yes" }}"
- data-label-no="{{ t "no" }}"
- data-label-loading="{{ t "Work in progress..." }}"
- data-url="{{ route "removeSession" "sessionID" .ID }}">{{ t "Remove" }}</a>
- {{ end }}
- </td>
- </tr>
- {{ end }}
- </table>
- {{ end }}
- `,
- "settings": `{{ define "title"}}{{ t "Settings" }}{{ end }}
- {{ define "content"}}
- <section class="page-header">
- <h1>{{ t "Settings" }}</h1>
- <ul>
- <li>
- <a href="{{ route "integrations" }}">{{ t "Integrations" }}</a>
- </li>
- <li>
- <a href="{{ route "sessions" }}">{{ t "Sessions" }}</a>
- </li>
- {{ if .user.IsAdmin }}
- <li>
- <a href="{{ route "users" }}">{{ t "Users" }}</a>
- </li>
- {{ end }}
- <li>
- <a href="{{ route "about" }}">{{ t "About" }}</a>
- </li>
- </ul>
- </section>
- <form method="post" autocomplete="off" action="{{ route "updateSettings" }}">
- <input type="hidden" name="csrf" value="{{ .csrf }}">
- {{ if .errorMessage }}
- <div class="alert alert-error">{{ t .errorMessage }}</div>
- {{ end }}
- <label for="form-username">{{ t "Username" }}</label>
- <input type="text" name="username" id="form-username" value="{{ .form.Username }}" required>
- <label for="form-password">{{ t "Password" }}</label>
- <input type="password" name="password" id="form-password" value="{{ .form.Password }}" autocomplete="off">
- <label for="form-confirmation">{{ t "Confirmation" }}</label>
- <input type="password" name="confirmation" id="form-confirmation" value="{{ .form.Confirmation }}" autocomplete="off">
- <label for="form-language">{{ t "Language" }}</label>
- <select id="form-language" name="language">
- {{ range $key, $value := .languages }}
- <option value="{{ $key }}" {{ if eq $key $.form.Language }}selected="selected"{{ end }}>{{ $value }}</option>
- {{ end }}
- </select>
- <label for="form-timezone">{{ t "Timezone" }}</label>
- <select id="form-timezone" name="timezone">
- {{ range $key, $value := .timezones }}
- <option value="{{ $key }}" {{ if eq $key $.form.Timezone }}selected="selected"{{ end }}>{{ $value }}</option>
- {{ end }}
- </select>
- <label for="form-theme">{{ t "Theme" }}</label>
- <select id="form-theme" name="theme">
- {{ range $key, $value := .themes }}
- <option value="{{ $key }}" {{ if eq $key $.form.Theme }}selected="selected"{{ end }}>{{ $value }}</option>
- {{ end }}
- </select>
- <div class="buttons">
- <button type="submit" class="button button-primary" data-label-loading="{{ t "Loading..." }}">{{ t "Update" }}</button>
- </div>
- </form>
- {{ if hasOAuth2Provider "google" }}
- <div class="panel">
- {{ if hasKey .user.Extra "google_id" }}
- <a href="{{ route "oauth2Unlink" "provider" "google" }}">{{ t "Unlink my Google account" }}</a>
- {{ else }}
- <a href="{{ route "oauth2Redirect" "provider" "google" }}">{{ t "Link my Google account" }}</a>
- {{ end }}
- </div>
- {{ end }}
- {{ end }}
- `,
- "unread": `{{ define "title"}}{{ t "Unread Items" }} {{ if gt .countUnread 0 }}({{ .countUnread }}){{ end }} {{ end }}
- {{ define "content"}}
- <section class="page-header">
- <h1>{{ t "Unread" }} ({{ .countUnread }})</h1>
- {{ if .entries }}
- <ul>
- <li>
- <a href="#" data-on-click="markPageAsRead">{{ t "Mark this page as read" }}</a>
- </li>
- </ul>
- {{ end }}
- </section>
- {{ if not .entries }}
- <p class="alert">{{ t "There is no unread article." }}</p>
- {{ else }}
- <div class="items hide-read-items">
- {{ range .entries }}
- <article class="item item-status-{{ .Status }}" data-id="{{ .ID }}">
- <div class="item-header">
- <span class="item-title">
- {{ if ne .Feed.Icon.IconID 0 }}
- <img src="{{ route "icon" "iconID" .Feed.Icon.IconID }}" width="16" height="16">
- {{ end }}
- <a href="{{ route "unreadEntry" "entryID" .ID }}">{{ .Title }}</a>
- </span>
- <span class="category"><a href="{{ route "categoryEntries" "categoryID" .Feed.Category.ID }}">{{ .Feed.Category.Title }}</a></span>
- </div>
- <div class="item-meta">
- <ul>
- <li>
- <a href="{{ route "feedEntries" "feedID" .Feed.ID }}" title="{{ .Feed.Title }}">{{ domain .Feed.SiteURL }}</a>
- </li>
- <li>
- <time datetime="{{ isodate .Date }}" title="{{ isodate .Date }}">{{ elapsed .Date }}</time>
- </li>
- <li>
- <a href="{{ .URL }}" target="_blank" rel="noopener noreferrer" referrerpolicy="no-referrer" data-original-link="true">{{ t "Original" }}</a>
- </li>
- </ul>
- </div>
- </article>
- {{ end }}
- </div>
- {{ template "pagination" .pagination }}
- {{ end }}
- {{ end }}`,
- "users": `{{ define "title"}}{{ t "Users" }}{{ end }}
- {{ define "content"}}
- <section class="page-header">
- <h1>{{ t "Users" }}</h1>
- <ul>
- <li>
- <a href="{{ route "settings" }}">{{ t "Settings" }}</a>
- </li>
- <li>
- <a href="{{ route "integrations" }}">{{ t "Integrations" }}</a>
- </li>
- <li>
- <a href="{{ route "sessions" }}">{{ t "Sessions" }}</a>
- </li>
- <li>
- <a href="{{ route "createUser" }}">{{ t "Add user" }}</a>
- </li>
- </ul>
- </section>
- {{ if eq (len .users) 1 }}
- <p class="alert">{{ t "You are the only user." }}</p>
- {{ else }}
- <table>
- <tr>
- <th class="column-20">{{ t "Username" }}</th>
- <th>{{ t "Administrator" }}</th>
- <th>{{ t "Last Login" }}</th>
- <th>{{ t "Actions" }}</th>
- </tr>
- {{ range .users }}
- {{ if ne .ID $.user.ID }}
- <tr>
- <td>{{ .Username }}</td>
- <td>{{ if eq .IsAdmin true }}{{ t "Yes" }}{{ else }}{{ t "No" }}{{ end }}</td>
- <td>
- {{ if .LastLoginAt }}
- <time datetime="{{ isodate .LastLoginAt }}" title="{{ isodate .LastLoginAt }}">{{ elapsed .LastLoginAt }}</time>
- {{ else }}
- {{ t "Never" }}
- {{ end }}
- </td>
- <td>
- <a href="{{ route "editUser" "userID" .ID }}">{{ t "Edit" }}</a>,
- <a href="#"
- data-confirm="true"
- data-label-question="{{ t "Are you sure?" }}"
- data-label-yes="{{ t "yes" }}"
- data-label-no="{{ t "no" }}"
- data-label-loading="{{ t "Work in progress..." }}"
- data-url="{{ route "removeUser" "userID" .ID }}">{{ t "Remove" }}</a>
- </td>
- </tr>
- {{ end }}
- {{ end }}
- </table>
- {{ end }}
- {{ end }}
- `,
- }
- var templateViewsMapChecksums = map[string]string{
- "about": "ad2fb778fc73c39b733b3f81b13e5c7d689b041fadd24ee2d4577f545aa788ad",
- "add_subscription": "098ea9e492e18242bd414b22c4d8638006d113f728e5ae78c9186663f60ae3f1",
- "categories": "ca1280cd157bb527d4fc907da67b05a8347378f6dce965b9389d4bcdf3600a11",
- "category_entries": "219d315877664c84edaf4815bd52a76039585570a35b197332cd0a6bc25c4c55",
- "choose_subscription": "d37682743d8bbd84738a964e238103db2651f95fa340c6e285ffe2e12548d673",
- "create_category": "2b82af5d2dcd67898dc5daa57a6461e6ff8121a6089b2a2a1be909f35e4a2275",
- "create_user": "815dd31faaa6e9ba81a2a6664e5707aaf4153c392accd2b1f77cf1937035a881",
- "edit_category": "cee720faadcec58289b707ad30af623d2ee66c1ce23a732965463250d7ff41c5",
- "edit_feed": "c5bc4c22bf7e8348d880395250545595d21fb8c8e723fc5d7cca68e25d250884",
- "edit_user": "c835d78f7cf36c11533db9cef253457a9003987d704070d59446cb2b0e84dcb9",
- "entry": "12e863c777368185091008adc851ddc0327317849f1566f7803be2b5bd358fd7",
- "feed_entries": "c2b1b4181a64b8cbacac0e59d9f48906d77a52b5b40f973befb7e67604009198",
- "feeds": "c22af39b42ba9ca69ea0914ca789303ec2c5b484abcd4eaa49016e365381257c",
- "history": "78bb9b4216c66a7d03cc1407476a8599269c6ee228dcd4b439ace9c94703938b",
- "import": "73b5112e20bfd232bf73334544186ea419505936bc237d481517a8622901878f",
- "integrations": "c485d6d9ed996635e55e73320610e6bcb01a41c1153e8e739ae2294b0b14b243",
- "login": "04f3ce79bfa5753f69e0d956c2a8999c0da549c7925634a3e8134975da0b0e0f",
- "sessions": "878dbe8f8ea783b44130c495814179519fa5c3aa2666ac87508f94d58dd008bf",
- "settings": "1e2df11f5436eb2d05ae1fae30dd6f1362613011edbfcc79ae8b23854fa348b4",
- "unread": "f631cec5e3bf0daa9ccce99985aac8f6004ae41330e449d4f927f2179937cb21",
- "users": "44677e28bb5347799ed0020c90ec785aadec4b1454446d92411cfdaf6e32110b",
- }
|