1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2024-12-16 15:00:26 +00:00
Commit Graph

205 Commits

Author SHA1 Message Date
Timur Ismagilov
b677f4137a About: Recreate using <dl>
What a wonderful tag

=> https://www.w3.org/TR/2011/WD-html5-author-20110809/the-dl-element.html
2022-04-21 17:19:43 +03:00
Timur Ismagilov
a11c69027d About: Wording 2022-04-09 15:01:03 +03:00
Timur Ismagilov
e2b570615e Help: Bring the topic sidebar closer 2022-04-09 14:55:55 +03:00
Timur Ismagilov
a15eeca117 Isolate help 2022-04-09 11:28:57 +03:00
Timur Ismagilov
2dcb1a5fe7 Backlinks: Isolate 2022-04-02 19:58:57 +03:00
Timur Ismagilov
75ded17a03 Please staticcheck
I ignored ST1005: error strings should not be capitalized and some others
2022-04-02 11:09:37 +03:00
Timur Ismagilov
cc01a3551d Misc: Move more stuff here, including title search 2022-04-02 11:00:10 +03:00
Timur Ismagilov
9eb92cfa6e Misc: Port /list to the new approach 2022-04-02 10:10:32 +03:00
Timur Ismagilov
c3fafb735f Categories, views: Refactor the list view 2022-04-01 23:52:56 +03:00
Timur Ismagilov
3dad3a3a4f Move package categories to the root level 2022-04-01 22:52:38 +03:00
Timur Ismagilov
78bae127b3 Use viewutil.Meta in many places 2022-04-01 22:51:15 +03:00
Timur Ismagilov
2769a096e5 Alias views.Base to a wrapper to viewutil.Base 2022-03-30 00:11:34 +03:00
Timur Ismagilov
a8b3e3d43a Implement viewutil.Base 2022-03-29 23:59:36 +03:00
Timur Ismagilov
9a55a520c0 Categories: Write docs 2022-03-26 19:04:51 +03:00
Timur Ismagilov
b87ed40425 Change version to 1.9.0 2022-03-26 18:54:43 +03:00
Timur Ismagilov
715602d56b Categories: Make the lists look more like Mycorrhiza 2022-03-26 18:49:30 +03:00
Timur Ismagilov
be7b2cc295 Categories: Do not let anons add to/remove from categories 2022-03-26 18:39:33 +03:00
Timur Ismagilov
0a273f55f4 Admin: Port /admin/ to the new template approach 2022-03-26 18:26:14 +03:00
Timur Ismagilov
a5cb7c0a3d Categories: Perform l10n tricks 2022-03-23 15:46:08 +03:00
Timur Ismagilov
4d56657938 Categories: Localize the categories card 2022-03-22 16:57:25 +03:00
Timur Ismagilov
81c075bfb4 Categories: Style the categories card 2022-03-22 16:40:40 +03:00
Timur Ismagilov
eb88cbf23e Views: Drop the *HTML suffix 2022-03-21 00:24:40 +03:00
Timur Ismagilov
b4c4b3fbf0 API: Get rid of *-json URLs
I doubt anybody really used the two. They will make a comeback later.
2022-03-21 00:10:09 +03:00
Timur Ismagilov
6037073352 Recent changes: Get rid of ? in a circle 2022-03-21 00:06:38 +03:00
Timur Ismagilov
40bb20a89c L10n experiment no. 6 (?)
Use the template system for default English keys and then redefine them with Russian versions.

This is kinda weird.
2022-03-20 22:24:40 +03:00
Timur Ismagilov
7865f77060 Categories: Add category list
* /category lists categories
* /category/<cat> shows the category
2022-03-20 21:24:54 +03:00
Timur Ismagilov
9a60cc2386 Categories: Add addition to/removal from categories
* The result of operations is not saved on disk.
* TODO: handle bad names
2022-03-20 12:28:51 +03:00
Timur Ismagilov
ea0c2f35d1 Categories: Refactor a little
* Introduce views.Meta for passing common stuff around.
* Store both category-related templates in one HTML file, which is go:embed:ded.
* Fix a bug.
2022-03-20 12:04:08 +03:00
Timur Ismagilov
d2a4285e7f Categories: Implement category pages 2022-03-20 11:21:59 +03:00
Timur Ismagilov
f5cbd5622d Categories: Show pre-populated categories
They are useless now, and cannot be edited. Also, not properly styled. You get the idea though.
2022-03-19 23:57:33 +03:00
Timur Ismagilov
72cbca926c Fix the bug with deletion 2022-03-08 23:12:35 +03:00
Timur Ismagilov
bd6b46f346 Experiment № 3. QTPL+l10nEntry
Encapsulate translations, but still use QTPL. Hmm
2022-02-27 13:44:47 +03:00
Timur Ismagilov
fc4fe4ea94 Experiment № 2. Reimplement AboutHTML
Used a somewhat different approach this time. I'm feeling inexplicable anger. More experiments to come!
2022-02-26 20:46:21 +03:00
Timur Ismagilov
1c955fd081 Views: Reimplement the topics sidebar
Instead of qtpl and l18n, I used html/template
and some functions. This is experimental, but
overall looks much more maintainable in the
future. Thinking...
2022-02-26 12:16:20 +03:00
Timur Ismagilov
72e0f445fd Rename attachment to media 2022-02-26 10:33:09 +03:00
Timur Ismagilov
d8699d46c0 Backlinks: Fix backlinks for media and empty hyphae 2022-02-26 09:42:54 +03:00
Timur Ismagilov
41651f9e9b Break a lot of stuff
Starring:
* Fix some bugs for /rename/
* Introduce /delete/, /remove-media/
* Introduce some bugs for the methods mentioned above
2022-02-20 00:12:28 +03:00
Timur Ismagilov
eb9acb718e Break a lot of stuff
Starring:
* Broken error localization for now (got in the way)
* The title for error pages is the same for all errors (who cares anyway)
* New bugs
* The brand new /rename/ handler
2022-02-19 19:42:32 +03:00
Timur Ismagilov
dd3f2c698a Siblings: Disable the sidebar by default 2022-02-19 12:54:20 +03:00
Timur Ismagilov
74099922a3 Update version 2022-02-19 12:18:45 +03:00
Timur Ismagilov
0eb3ba9b45 Do not show siblings and subhyphae on revision pages
It didn't really make sense before
2022-02-19 11:31:54 +03:00
Timur Ismagilov
c0ac87cdbd Rename Hypher to Hypha 2022-02-19 11:31:54 +03:00
Timur Ismagilov
ee233b9577 Fix textual hypha creation 2022-02-19 11:31:54 +03:00
Timur Ismagilov
6fc5cf994e Rename MediaHypha to NonEmptyHypha 2022-02-19 11:31:54 +03:00
Timur Ismagilov
ae13fdab43 Delete DoesExist
Now type switches are enforced
2022-02-19 11:31:54 +03:00
Timur Ismagilov
a30d581bfd Rename Hypha to MediaHypha 2022-02-19 11:31:54 +03:00
Timur Ismagilov
154069091e Store hyphae as Hypher and cast to *Hypha only wheen need 2022-02-19 11:31:54 +03:00
Timur Ismagilov
1c317e39aa Play with Hypha.Name 2022-02-19 11:31:54 +03:00
Timur Ismagilov
128f40288b Play with Hypha.BinaryPath 2022-02-19 11:31:54 +03:00
Timur Ismagilov
927ac4f1da Use the Hypher interface in a lot of places 2022-02-19 11:31:54 +03:00