|
72 | 72 | tr.stripe td { background-color: var(--bone-stripe-bg); } |
73 | 73 | tr:not(.stripe) td { background-color: var(--bone-row-bg); } |
74 | 74 | td:nth-child(3) { white-space: nowrap; } |
75 | | - td:nth-child(5) { min-width: 740px; } |
76 | | - td:nth-child(6) { max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } |
| 75 | + td:nth-child(8) { min-width: 740px; } /* Subject */ |
| 76 | + td:nth-child(7) { max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* Author */ |
77 | 77 | #status { font-size: 0.8rem; margin-bottom: 0.5rem; } |
78 | 78 | .row-icon { font-size: 0.75rem; text-decoration: none; } |
79 | 79 | a.row-icon[data-action] { margin-right: 0.3em; } |
|
96 | 96 | } |
97 | 97 | @media (max-width: 860px) { |
98 | 98 | td:nth-child(2), th:nth-child(2) { display: none; } /* Priority */ |
99 | | - td:nth-child(5) { min-width: auto; } |
| 99 | + td:nth-child(8) { min-width: auto; } /* Subject */ |
100 | 100 | } |
101 | 101 | @media (max-width: 780px) { |
102 | | - td:nth-child(9), th:nth-child(9) { display: none; } /* Replies */ |
| 102 | + td:nth-child(5), th:nth-child(5) { display: none; } /* Replies */ |
103 | 103 | } |
104 | 104 | @media (max-width: 740px) { |
105 | | - td:nth-child(8), th:nth-child(8) { display: none; } /* Date */ |
| 105 | + td:nth-child(9), th:nth-child(9) { display: none; } /* Date */ |
106 | 106 | } |
107 | 107 | @media (max-width: 680px) { |
108 | | - td:nth-child(7), th:nth-child(7) { display: none; } /* Owner */ |
| 108 | + td:nth-child(6), th:nth-child(6) { display: none; } /* Owner */ |
109 | 109 | } |
110 | 110 | @media (max-width: 540px) { |
111 | | - td:nth-child(6), th:nth-child(6) { display: none; } /* Author */ |
| 111 | + td:nth-child(7), th:nth-child(7) { display: none; } /* Author */ |
112 | 112 | input[type=search] { max-width: none; min-width: 0; width: 100%; } |
113 | 113 | .toolbar { flex-direction: column; align-items: stretch; } |
114 | 114 | } |
|
133 | 133 | ;; data-sort / boneConfig.columnsSort ("author" sorts on the "from" key). |
134 | 134 | (def ^:private canonical-columns |
135 | 135 | [["type" "type"] ["priority" "priority"] ["due" "due"] ["flags" "flags"] |
136 | | - ["subject" "subject"] ["author" "from"] ["owner" "owner"] ["date" "date"] |
137 | | - ["replies" "replies"]]) |
| 136 | + ["replies" "replies"] ["owner" "owner"] ["author" "from"] |
| 137 | + ["subject" "subject"] ["date" "date"]]) |
138 | 138 |
|
139 | 139 | (def ^:private column-names (mapv first canonical-columns)) |
140 | 140 | (def ^:private column-sort-key (into {} canonical-columns)) |
|
211 | 211 | base-dir (.getParent (clojure.java.io/file reports-dir)) |
212 | 212 | has-ical? (and base-dir (.exists (clojure.java.io/file base-dir "events" "announcements.ics"))) |
213 | 213 | rss-href "reports/all.xml" |
214 | | - cols [[:th {:data-sort "type" :onclick "sortTable(0,'type')"} "Type"] |
215 | | - [:th {:data-sort "priority" :onclick "sortTable(1,'priority')"} "Prio"] |
216 | | - [:th {:data-sort "due" :onclick "sortTable(2,'due')"} "Due"] |
217 | | - [:th {:data-sort "flags" :onclick "sortTable(3,'flags')"} "Flags"] |
218 | | - [:th {:data-sort "subject" :onclick "sortTable(4,'subject')" :title "Sort by last activity"} "Subject"] |
219 | | - [:th {:data-sort "from" :onclick "sortTable(5,'from')"} "Author"] |
220 | | - [:th {:data-sort "owner" :onclick "sortTable(6,'owner')"} "Owner"] |
221 | | - [:th {:data-sort "date" :onclick "sortTable(7,'date')"} "Date"] |
222 | | - [:th {:data-sort "replies" :onclick "sortTable(8,'replies')"} "↩"]] |
| 214 | + cols [[:th {:data-sort "type" :onclick "sortTable(0,'type')" :title "Sort by type"} "Type"] |
| 215 | + [:th {:data-sort "priority" :onclick "sortTable(1,'priority')" :title "Sort by priority"} "Prio"] |
| 216 | + [:th {:data-sort "due" :onclick "sortTable(2,'due')" :title "Sort by deadline"} "Due"] |
| 217 | + [:th {:data-sort "flags" :onclick "sortTable(3,'flags')" :title "Sort by flags"} "Flags"] |
| 218 | + [:th {:data-sort "replies" :onclick "sortTable(4,'replies')" :title "Sort by number of replies"} "↩"] |
| 219 | + [:th {:data-sort "owner" :onclick "sortTable(5,'owner')" :title "Sort by owner"} "Owner"] |
| 220 | + [:th {:data-sort "from" :onclick "sortTable(6,'from')" :title "Sort by author"} "Author"] |
| 221 | + [:th {:data-sort "subject" :onclick "sortTable(7,'subject')" :title "Sort by last activity"} "Subject"] |
| 222 | + [:th {:data-sort "date" :onclick "sortTable(8,'date')" :title "Sort by date"} "Date"]] |
223 | 223 | tpl-body (str |
224 | 224 | (h/html |
225 | 225 | [:main.container |
|
0 commit comments