Commit graph

97 commits

Author SHA1 Message Date
Magnus Hoff
c6dd37ed9e Centralize handling of form elements state handling.
This makes it easier to maintain state changes. Seems to handle all states well now
2018-09-30 22:30:52 +02:00
Magnus Hoff
3bbe5840ee Implement theme picker UI 2018-09-24 08:43:36 +02:00
Magnus Hovland Hoff
baaab6ebc8 Store theme explicitly in database. Propagate theme both ways between db and frontend 2018-09-23 22:38:18 +02:00
Magnus Hovland Hoff
6118f14bb0 Explicitly set theme for layout.
Refactoring in anticipation of letting the user choose theme
2018-09-18 23:11:25 +02:00
Magnus Hovland Hoff
c1dcb1de64 Make responsibility for converting a theme to a css class to the theme module 2018-09-18 19:43:33 +02:00
Magnus Hovland Hoff
534dffdfe3 Show disabled cancel button instead of removing it.
This fixes two problems caused by the removal of the button: Broken layout and broken JS
2018-09-16 22:25:28 +02:00
Magnus Hovland Hoff
8d86e8937a Capitalize placeholder in search input.
I think I like this better
2018-09-16 12:06:20 +02:00
Magnus Hovland Hoff
42e7857fcd Revert "Attempt to improve overscroll in Apple browsers"
This reverts commit 0847cb5c4d.
2018-08-21 21:57:40 +02:00
Magnus Hovland Hoff
0847cb5c4d Attempt to improve overscroll in Apple browsers 2018-08-21 19:06:53 +02:00
Magnus Hoff
c94bf91fc2 Iterate on editor controls styling 2018-08-20 23:25:03 +02:00
Magnus Hoff
e26e60ce2c Iterate on the design
Less box-shadow
2018-07-16 22:11:53 +02:00
Magnus Hoff
8b0e58c24c Update about text 2018-07-08 22:34:04 +02:00
Magnus Hoff
0b5bff6356 Refactor handling of generated unique names for resources 2018-06-24 23:00:35 +02:00
Magnus Hoff
31ace5d4c2 Apply new style to search 2018-06-17 21:16:44 +02:00
Magnus Hoff
e4629d8edb Refactor rendering of pages to centralize header layout.
Convert all pages to new layout
2018-06-17 10:43:47 +02:00
Magnus Hoff
2b27e27a9b Tweak layout.html.
This fixes #67
2018-06-16 14:51:13 +02:00
Magnus Hoff
0a48ff2a54 Factor choice of theme into Layout struct 2018-06-16 14:30:18 +02:00
Magnus Hoff
7e6fe36ea0 Serve articles with a random theme 2018-06-16 11:24:34 +02:00
Magnus Hoff
4516534b39 Start trying out implementing new layout 2018-06-16 10:58:00 +02:00
Magnus Hoff
a582d3a627 Merge branch 'master' into process_markdown_in_sqlite 2018-06-13 22:22:08 +02:00
Magnus Hoff
b1b1a91db1 Attempt to fix font preload link 2018-01-21 11:58:04 +01:00
Magnus Hoff
b1e598cb17 Experimentally transform markdown for better presentation in full text search results
For issue #37
2018-01-19 16:49:26 +01:00
Magnus Hoff
a6e329faf0 Simplify "Discard changes?" dialog 2017-12-02 11:06:20 +01:00
Magnus Hoff
bc0f8b8046 Restyle and refactor popup dialogs 2017-12-02 11:01:24 +01:00
Magnus Hoff
5ce9b37ab0 Update about.html 2017-11-30 13:29:21 +01:00
Magnus Hoff
b685139d5b Implement merge conflict handling for the noscript case #23 2017-11-20 16:07:33 +01:00
Magnus Hoff
88b3df21c2 Refactor build information and add more information #44 2017-11-20 10:12:10 +01:00
Magnus Hoff
1911a914ef Generate license attributions from JSON
JSON is mainly generated by cargo-license-hound
2017-11-14 13:06:50 +01:00
Magnus Hoff
43f8ec439e "Hide" editor pages from search engines
They are essentially duplicates of the article pages
2017-11-14 11:21:41 +01:00
Magnus Hoff
26fc263cd4 Reword about page. Add list of dependencies and licenses 2017-11-07 15:54:46 +01:00
Magnus Hoff
a796f299a4 Add link to diff view from article revision 2017-11-06 16:26:37 +01:00
Magnus Hoff
f9905e6548 Avoid generating invalid diff links in changes feed 2017-11-06 16:07:25 +01:00
Magnus Hoff
5acca0ddb7 Add links to the article before and after diff 2017-11-06 15:58:16 +01:00
Magnus Hoff
ac5ff0dbcc Add link to article history from diff page 2017-11-06 15:52:51 +01:00
Magnus Hoff
bfd2acda4f Get article revisions from database during diff lookup.
Diffs for missing revisions now cause 404-errors
2017-11-06 15:45:11 +01:00
Magnus Hoff
c24c5a84d5 Generate links to diffs from changes feed 2017-11-06 13:37:46 +01:00
Magnus Hoff
9cb3da86e2 Also render diff of title 2017-11-06 13:06:32 +01:00
Magnus Hoff
2042e5e7fe Style diff a little bit better 2017-11-06 12:55:13 +01:00
Magnus Hoff
faec67c797 Include and serve relevant software licenses 2017-11-02 14:48:22 +01:00
Magnus Hoff
63b9715550 Add a bare bones _about page. #10 2017-11-01 15:38:50 +01:00
Magnus Hoff
78bd53e640 Machine readable branding.
Include project name and version in Server header and generator meta tag
2017-11-01 13:17:58 +01:00
Magnus Hoff
59b9e77d47 Rudimentary support for comparing revisions of articles
For issue #21
2017-10-30 16:35:21 +01:00
Magnus Hoff
7d431b46fe Require something in the title field, client side 2017-10-30 13:23:06 +01:00
Magnus Hoff
1bdc21039b Refactor generation of links from slugs
This fixes a bug where the cancel-link on the front page would be to "" rather than "."
2017-10-30 12:42:53 +01:00
Magnus Hoff
4ca748f180 Optionally show authors in _changes based on --trust-identity command line argument.
This fixes #19
2017-10-30 11:44:36 +01:00
Magnus Hoff
1c820c9db0 Add tabindex to search result links
This makes the links appear in the relatedElement-field of the focusout event
2017-10-26 11:32:45 +02:00
Magnus Hoff
b81137ad25 Prev and next-links for search result. "More"-link for instant search 2017-10-25 16:34:21 +02:00
Magnus Hoff
74b8040d39 Refactor CSS for search results. Add support for keyboard control to full search results page 2017-10-25 16:02:30 +02:00
Magnus Hoff
2939dfaf9c Support using keyboard to follow search results 2017-10-25 13:49:00 +02:00
Magnus Hoff
056f1ddf72 Implement interactive search 2017-10-25 13:24:42 +02:00