summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2017-09-23 13:50:01 +0200
committerBernhard Posselt <BernhardPosselt@users.noreply.github.com>2017-09-23 13:50:01 +0200
commit41e97eb7f5ca0c0595c61187da8ffcdbc1b2c844 (patch)
tree528cb2593f648cc2142afada89f63cdda7ad4c32 /templates
parent44245fda63a00c0d6f4a44295b1457d9d23a9f84 (diff)
App to css guidelines (#220)
* Editing and deletion Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> * Always collapsible Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'templates')
-rw-r--r--templates/part.navigation.feed.php11
-rw-r--r--templates/part.navigation.folder.php75
2 files changed, 43 insertions, 43 deletions
diff --git a/templates/part.navigation.feed.php b/templates/part.navigation.feed.php
index 08c510c14..0f9bbaee2 100644
--- a/templates/part.navigation.feed.php
+++ b/templates/part.navigation.feed.php
@@ -1,7 +1,10 @@
<li ng-class="{
active: Navigation.isFeedActive(feed.id),
unread: Navigation.isFeedUnread(feed.id),
- updateerror: feed.updateErrorCount>50
+ updateerror: feed.updateErrorCount>50,
+ deleted: feed.deleted,
+ editing: feed.editing,
+ 'icon-loading-small': !(feed.id || feed.error)
}"
ng-repeat="feed in Navigation.getFeedsOfFolder(<?php p($_['folderId']); ?>)
| orderBy:['-pinned', 'title.toLowerCase()'] track by feed.url"
@@ -29,7 +32,7 @@
}">
<a ng-style="{ backgroundImage: 'url(' + feed.faviconLink + ')'}"
- ng-show="!feed.editing && !feed.deleted && !feed.error && feed.id"
+ ng-show="!feed.error && feed.id"
ng-href="#/items/feeds/{{ feed.id }}/"
class="title"
ng-class="{'icon-rss': !feed.faviconLink}"
@@ -37,8 +40,8 @@
{{ feed.title }}
</a>
- <a ng-hide="feed.id || feed.error"
- class="entry-loading title"
+ <a ng-if="!(feed.id || feed.error)"
+ class="title"
title="{{ feed.title }}">
{{ feed.title }}
</a>
diff --git a/templates/part.navigation.folder.php b/templates/part.navigation.folder.php
index 8f2539944..67ac81e84 100644
--- a/templates/part.navigation.folder.php
+++ b/templates/part.navigation.folder.php
@@ -1,8 +1,9 @@
<li ng-class="{
active: Navigation.isFolderActive(folder.id),
open: folder.opened || folder.getsFeed,
- collapsible: Navigation.hasFeeds(folder.id) || folder.getsFeed,
- unread: Navigation.isFolderUnread(folder.id)
+ unread: Navigation.isFolderUnread(folder.id),
+ deleted: folder.deleted,
+ editing: folder.editing
}"
ng-repeat="folder in Navigation.getFolders() | orderBy:'name.toLowerCase()'"
ng-show="Navigation.isFolderUnread(folder.id)
@@ -12,7 +13,7 @@
|| !folder.id
|| folder.getsFeed
|| !Navigation.hasFeeds(folder.id)"
- class="folder with-counter with-menu animate-show"
+ class="folder with-counter with-menu animate-show collapsible"
data-id="{{ folder.id }}"
news-droppable>
<button class="collapse"
@@ -20,6 +21,16 @@
title="<?php p($l->t('Collapse'));?>"
ng-click="Navigation.toggleFolder(folder.name)"></button>
+ <a ng-href="#/items/folders/{{ folder.id }}/"
+ class="title icon-folder"
+ ng-if="!folder.error && folder.id">
+ {{ folder.name }}
+ </a>
+
+ <a class="title icon-loading-small" ng-if="!(folder.id || folder.error)">
+ {{ folder.name }}
+ </a>
+
<div ng-if="folder.deleted"
class="app-navigation-entry-deleted"
news-timeout="Navigation.deleteFolder(folder)">
@@ -40,30 +51,29 @@
Navigation.folderNameExists(folderName))
}">
<form ng-submit="Navigation.renameFolder(folder, folderName)">
- <fieldset ng-disabled="Navigation.renamingFolder">
- <input name="folderName"
- type="text"
- ng-init="folderName=folder.name"
- ng-class="{
- 'ng-invalid':
- folderName != folder.name &&
- !Navigation.renamingFolder &&
- Navigation.folderNameExists(folderName)
- }"
- ng-model="folderName"
- ng-model-options="{updateOn:'submit'}"
- required
- news-auto-focus>
- <input type="submit"
- value=""
- ng-class="{'entry-loading': Navigation.renamingFolder}"
- title="<?php p($l->t('Rename')); ?>"
- class="action icon-checkmark"
- ng-disabled="folderName != folder.name &&
+ <input name="folderName"
+ type="text"
+ ng-init="folderName=folder.name"
+ ng-class="{
+ 'ng-invalid':
+ folderName != folder.name &&
!Navigation.renamingFolder &&
- Navigation.folderNameExists(folderName)">
- </button>
- </fieldset>
+ Navigation.folderNameExists(folderName)
+ }"
+ ng-model="folderName"
+ ng-model-options="{updateOn:'submit'}"
+ ng-disabled="Navigation.renamingFolder"
+ required
+ news-auto-focus>
+ <input type="submit"
+ value=""
+ ng-class="{'icon-loading-small': Navigation.renamingFolder}"
+ title="<?php p($l->t('Rename')); ?>"
+ class="action icon-checkmark"
+ ng-disabled="folderName != folder.name &&
+ !Navigation.renamingFolder &&
+ Navigation.folderNameExists(folderName)">
+ </button>
<p class="error" ng-show="folderName != folder.name &&
!Navigation.renamingFolder &&
Navigation.folderNameExists(folderName)">
@@ -75,19 +85,6 @@
</form>
</div>
- <a ng-href="#/items/folders/{{ folder.id }}/"
- class="title icon-folder"
- ng-show="!folder.editing &&
- !folder.error &&
- !folder.deleted &&
- folder.id">
- {{ folder.name }}
- </a>
-
- <a class="title entry-loading" ng-hide="folder.id || folder.error">
- {{ folder.name }}
- </a>
-
<div class="app-navigation-entry-utils"
ng-show="folder.id &&
!folder.editing &&