diff options
Diffstat (limited to 'template/html')
-rw-r--r-- | template/html/add_subscription.html | 12 | ||||
-rw-r--r-- | template/html/choose_subscription.html | 12 | ||||
-rw-r--r-- | template/html/common/feed_menu.html | 19 | ||||
-rw-r--r-- | template/html/edit_feed.html | 7 | ||||
-rw-r--r-- | template/html/feeds.html | 15 | ||||
-rw-r--r-- | template/html/import.html | 12 |
6 files changed, 25 insertions, 52 deletions
diff --git a/template/html/add_subscription.html b/template/html/add_subscription.html index c3e8076..e435f32 100644 --- a/template/html/add_subscription.html +++ b/template/html/add_subscription.html @@ -3,17 +3,7 @@ {{ define "content"}} <section class="page-header"> <h1>{{ t "page.add_feed.title" }}</h1> - <ul> - <li> - <a href="{{ route "feeds" }}">{{ t "menu.feeds" }}</a> - </li> - <li> - <a href="{{ route "export" }}">{{ t "menu.export" }}</a> - </li> - <li> - <a href="{{ route "import" }}">{{ t "menu.import" }}</a> - </li> - </ul> + {{ template "feed_menu" }} </section> {{ if not .categories }} diff --git a/template/html/choose_subscription.html b/template/html/choose_subscription.html index de33003..cf7cf5a 100644 --- a/template/html/choose_subscription.html +++ b/template/html/choose_subscription.html @@ -3,17 +3,7 @@ {{ define "content"}} <section class="page-header"> <h1>{{ t "page.add_feed.title" }}</h1> - <ul> - <li> - <a href="{{ route "feeds" }}">{{ t "menu.feeds" }}</a> - </li> - <li> - <a href="{{ route "export" }}">{{ t "menu.export" }}</a> - </li> - <li> - <a href="{{ route "import" }}">{{ t "menu.import" }}</a> - </li> - </ul> + {{ template "feed_menu" }} </section> <form action="{{ route "chooseSubscription" }}" method="POST"> diff --git a/template/html/common/feed_menu.html b/template/html/common/feed_menu.html new file mode 100644 index 0000000..faba6fd --- /dev/null +++ b/template/html/common/feed_menu.html @@ -0,0 +1,19 @@ +{{ define "feed_menu" }} +<ul> + <li> + <a href="{{ route "feeds" }}">{{ t "menu.feeds" }}</a> + </li> + <li> + <a href="{{ route "addSubscription" }}">{{ t "menu.add_feed" }}</a> + </li> + <li> + <a href="{{ route "export" }}">{{ t "menu.export" }}</a> + </li> + <li> + <a href="{{ route "import" }}">{{ t "menu.import" }}</a> + </li> + <li> + <a href="{{ route "refreshAllFeeds" }}">{{ t "menu.refresh_all_feeds" }}</a> + </li> +</ul> +{{ end }}
\ No newline at end of file diff --git a/template/html/edit_feed.html b/template/html/edit_feed.html index da393b5..8bb5692 100644 --- a/template/html/edit_feed.html +++ b/template/html/edit_feed.html @@ -8,13 +8,10 @@ <a href="{{ route "feeds" }}">{{ t "menu.feeds" }}</a> </li> <li> - <a href="{{ route "addSubscription" }}">{{ t "menu.add_feed" }}</a> + <a href="{{ route "feedEntries" "feedID" .feed.ID }}">{{ t "menu.feed_entries" }}</a> </li> <li> - <a href="{{ route "export" }}">{{ t "menu.export" }}</a> - </li> - <li> - <a href="{{ route "import" }}">{{ t "menu.import" }}</a> + <a href="{{ route "refreshFeed" "feedID" .feed.ID }}">{{ t "menu.refresh_feed" }}</a> </li> </ul> </section> diff --git a/template/html/feeds.html b/template/html/feeds.html index e4d24bf..fa9d8ad 100644 --- a/template/html/feeds.html +++ b/template/html/feeds.html @@ -3,20 +3,7 @@ {{ define "content"}} <section class="page-header"> <h1>{{ t "page.feeds.title" }} ({{ .total }})</h1> - <ul> - <li> - <a href="{{ route "addSubscription" }}">{{ t "menu.add_feed" }}</a> - </li> - <li> - <a href="{{ route "export" }}">{{ t "menu.export" }}</a> - </li> - <li> - <a href="{{ route "import" }}">{{ t "menu.import" }}</a> - </li> - <li> - <a href="{{ route "refreshAllFeeds" }}">{{ t "menu.refresh_all_feeds" }}</a> - </li> - </ul> + {{ template "feed_menu" }} </section> {{ if not .feeds }} diff --git a/template/html/import.html b/template/html/import.html index 1245486..042b196 100644 --- a/template/html/import.html +++ b/template/html/import.html @@ -3,17 +3,7 @@ {{ define "content"}} <section class="page-header"> <h1>{{ t "page.import.title" }}</h1> - <ul> - <li> - <a href="{{ route "feeds" }}">{{ t "menu.feeds" }}</a> - </li> - <li> - <a href="{{ route "addSubscription" }}">{{ t "menu.add_feed" }}</a> - </li> - <li> - <a href="{{ route "export" }}">{{ t "menu.export" }}</a> - </li> - </ul> + {{ template "feed_menu" }} </section> {{ if .errorMessage }} |