wip refactor dashboard

This commit is contained in:
Juan de la Cruz 2019-12-19 12:50:58 +01:00
parent f9f36445ec
commit e0bd1098eb
12 changed files with 674 additions and 52 deletions

View file

@ -15,6 +15,7 @@
"ds.num-files" ["No files"
"%s file"
"%s files"]
"ds.new-file" "+ New File"
"ds.project-title" "Your projects"
"ds.project-new" "+ New project"
"ds.project-thumbnail.alt" "Project title"

View file

@ -160,9 +160,9 @@
(str (tr "ds.updated-at" (dt/timeago (:modified-at file))))]]
[:div.project-th-actions
[:div.project-th-icon.pages
i/page
#_[:span (:total-pages project)]]
;; [:div.project-th-icon.pages
;; i/page
;; #_[:span (:total-pages project)]]
#_[:div.project-th-icon.comments
i/chat
[:span "0"]]
@ -188,11 +188,11 @@
#_(udl/open! :create-project))
]
[:section.dashboard-grid
[:h2 (tr "ds.projects.file-name")]
;; [:h2 (tr "ds.projects.file-name")]
[:div.dashboard-grid-content
[:div.dashboard-grid-row
[:div.grid-item.add-project #_{:on-click on-click}
[:span (tr "ds.project-file")]]
[:span (tr "ds.new-file")]]
(for [item files]
[:& grid-item {:file item :key (:id item)}])]]]))