wekan/client/components/sidebar/sidebarArchives.jade
Maxime Quandalle d5eec54c72 Start the migration from iron-router to flow-router
Motivations:

* Iron-Router foces us to use Tracker.nonreactive black magic in order
  to avoid un-necessary re-renders;
* There is a community consensus (supported by some MDG members) that
  the flow-router API is easier to reason about;
* The useraccounts now supports flow router (that was a blocking
  element when I considered the switch ~3months ago)

On the server we use the Picker router, as encouraged by the Kadira
team (which develop both Flow and Picker routers).

In the current state of things there are some bugs related to the
missing Loading architecure. Previously onRendered callback where
always called when the data the component needed was available, now
we have to handle this ourselves, which we will in a following commit.
2015-08-23 11:11:03 +02:00

25 lines
653 B
Text

template(name="archivesSidebar")
+basicTabs(tabs=tabs)
+tabContent(slug="cards")
each archivedCards
.minicard-wrapper.js-minicard
+minicard(this)
p.quiet
a.js-restore-card Restore
| -
a.js-delete-card Delete
if cardIsInArchivedList
p.quiet.small (warning: this card is in an archived list)
else
p.no-items-message No archived cards.
+tabContent(slug="lists")
ul.archived-lists
each archivedLists
li.archived-lists-item
button.js-restore-list
i.fa.fa-undo
= title
else
li.no-items-message No archived lists.