Commit Graph

704 Commits

Author SHA1 Message Date
Azareal 436c53f653 The user box on Nox should be highlighted now when there's a new alert.
Removed some notes as they're not really needed now that I've refactored the alert builder.
2018-10-06 16:35:53 +10:00
Azareal 0b44d69efc The alert list can be localised now.
Removed a bit more boilerplate in the unit tests.
Fixed a bug where the alert list wouldn't load.
2018-10-05 17:41:28 +10:00
Azareal be66ac4c8d Added tests for the word counter. 2018-10-04 19:01:07 +10:00
Azareal f517fc2e65 More user test refactoring.
Added a utfmb4 username test.
2018-10-04 14:59:14 +10:00
Azareal beb2d99469 Refactored the user tests to reduce the amount of boilerplate.
Refactored BuildAlert to call into a function rather than building the alert strings itself.
Added a couple of unicode related unit tests.
2018-10-04 12:58:01 +10:00
Azareal b02175d7ae Localised the errors in /routes/panel/groups.go
Fixed a typo in a group manager phrase.
2018-10-03 20:10:55 +10:00
Azareal f6ab754743 Localised the group ranks in the group editor. 2018-10-02 20:00:52 +10:00
Azareal a365e42dcf Added a missing panel_ prefix for a template and added a couple more error phrases. 2018-10-02 17:20:55 +10:00
Azareal 0039b9c851 Reduced the amount of boilerplate in panel.Dashboard.
Localised a few things in panel.Dashboard.

Added the GetTmplPhrasef function.
2018-10-02 16:56:24 +10:00
Azareal 6634f3f64b All the control panel routes have been moved to /routes/panel/ now.
Moved the software version to common.go for better accessibility.
2018-10-02 15:03:20 +10:00
Azareal b2e97e47c1 Moved the last control panel theme manager route into /routes/panel/
Added the UpdateDefaultTheme function.

Renamed panelRenderTemplate to renderTemplate.
Renamed panelSuccessRedirect to successRedirect.
Reduced the amount of boilerplate in panel.GroupsEdit with renderTemplate.
Renamed the pre_render_panel_edit_group hook to pre_render_panel_group_edit.
Reduced the amount of boilerplate in panel.GroupsEditPerms with renderTemplate.
Renamed the pre_render_panel_edit_group_perms hook to pre_render_panel_group_edit_perms.

Fixed a bug where the active status for themes didn't get loaded at start-up.
Fixed a theoretical deadlock in NewThemeList.
Updated CONTRIBUTING.md
2018-10-02 14:09:17 +10:00
Azareal 750c0ff442 Moved all but one of the control panel theme routes into /routes/panel/ 2018-10-01 00:43:46 +10:00
Azareal dea74eb32a Localised the registration errors. 2018-09-30 19:48:31 +10:00
Azareal d675b2720f Began localising the id_must_be_integer and url_id_must_be_integer error pages.
Fixed the punctuation on a couple of registration errors, these will be localised too soon enough.
Removed a bit of boiletplate in groups.go with buildBasePage.
2018-09-30 10:42:33 +10:00
Azareal 322a46bcb5 Moved the control panel group routes into /routes/panel/
Added the Update, UpdatePerms and CopyPtr methods to *Group.
2018-09-30 10:08:27 +10:00
Azareal dfca660dfc Localised the common error phrases.
The no permissions error page has a less generic title now.

Fixed a bug where the title didn't show up for the not found page.
2018-09-28 17:19:51 +10:00
Azareal d8d5bc0573 Localised the not found error. 2018-09-27 20:53:40 +10:00
Azareal 59497de8dc Flatten out the Errors map in the phrase files. 2018-09-27 20:29:16 +10:00
Azareal e9a9441e93 Changed the topic list filter label text when switching between sort orders.
You can now close the topic list filter drop-down.
2018-09-27 19:41:35 +10:00
Azareal 2e5256dd73 The topic list sort filters should be localised too. 2018-09-26 18:10:46 +10:00
Azareal 9005b10be1 Fixed the live topic list after Most Viewed broke it 2018-09-26 18:05:25 +10:00
Azareal 859ed2c730 Finished the Most Viewed Page for Nox.
Added three phrases for topic_list.
Moved the topic_middle_inside suffix phrases from the CSS files into the template proper.
Removed a newline in topic_middle_inside and used flex instead.
The link_select drop-down is now only visible when someone clicks on the link.
Tweaked the .topic_forum line height for Cosora.
Tweaked the .topic_view_count font size for Cosora.
2018-09-26 17:46:30 +10:00
Azareal efbb59f085 Fixed a bug where admins weren't able to reorder menu items. 2018-09-26 16:19:07 +10:00
Azareal 04abfbe34f Fixed a bug where editing things wouldn't work. 2018-09-26 13:14:53 +10:00
Azareal 44ade585c6 Merge branch 'tlistsort' of https://github.com/Azareal/Gosora into tlistsort
# Conflicts:
#	templates/topics.html
#	themes/nox/public/main.css
2018-09-25 19:34:41 +10:00
Azareal a4117d1cf8 Move the inline filter opt styles into Nox's main.css 2018-09-25 19:24:22 +10:00
Azareal 80657813da Made the filter opt visible again and started work on the filter drop-down menu. 2018-09-25 19:24:22 +10:00
Azareal 1d17e7f334 Preliminary topic view counts for the Cosora Theme.
Added the topic.view_count_suffix phrase.
2018-09-25 19:22:20 +10:00
Azareal 4b75f5b55f Made the filter opt visible again and started work on the filter drop-down menu. 2018-09-25 18:02:40 +10:00
Azareal 273a0b3637 Added internationalisation documentation. 2018-09-24 17:54:54 +10:00
Azareal 7db4c60470 Simplify these calls with a closure. 2018-09-24 17:52:06 +10:00
Azareal 28dedf987b Tweak the header size and hide these bits momentarily so we can merge back into master. 2018-09-24 17:49:19 +10:00
Azareal 15b3ad07fa Try to eliminate some of these debug comments. 2018-09-24 09:42:17 +10:00
Azareal 00059194a5 Punctuation should demarcate word endings too. 2018-09-24 09:40:52 +10:00
Azareal cb9f067ff4 Maybe this? Hm.
I also tweaked the padding on the forum quick topic forms.
2018-09-21 14:23:25 +10:00
Azareal 64caed61ee Merge branch 'master' into tlistsort 2018-09-20 22:44:59 +10:00
Azareal 06f20c3e1f Linkified the username in the userbox in Nox.
We don't need two profile menu items.
Removed some excessive padding from the Nox profiles.
2018-09-20 22:39:03 +10:00
Azareal 7de911d78c Alerts now work in Nox. 2018-09-20 20:45:33 +10:00
Azareal a1403d495d Let's see how we can best do this o-o 2018-09-20 18:56:50 +10:00
Azareal eb6db07c30 Fixed a bug in the URL parser where it would demand a double newline rather than a single. 2018-09-20 16:47:54 +10:00
Azareal e9645c07bd Added support for simple named mentions.
Added a GetByName method to the UserStore.
Added eight mention tests.

Added the tryStepBackward function, might get removed.
Removed some superfluous commented debug statements.
2018-09-20 16:31:09 +10:00
Azareal 47d1010a53 Added the AddHashLinkType function so that plugins can add custom hash link types in an efficient manner.
Moved the hashLinkMap, etc. out of ParseMessage so that we can make them more pluggable.
The first word in usernames can no longer be purely numeric.
Added some ID mention tests.
2018-09-20 14:36:50 +10:00
Azareal f6b889b53b # is now allowed in URLs.
Added a few hashlink tests.
2018-09-20 12:58:06 +10:00
Azareal ca322a1456 Begin refactoring the hashlinks to make them more pluggable. 2018-09-20 12:44:34 +10:00
Azareal 46f03775c9 Use a Go 1.10 String Builder instead of byte slices in ParseMessage.
Removed a couple of unnecessary lines from global.js
2018-09-20 11:51:18 +10:00
Azareal 5d4013f500 Probe out this failing test case. 2018-09-20 11:42:45 +10:00
Azareal 5a189e7180 We can probably be looser with ParseMessage than with PreparseMessage as it handles these edge cases for us. 2018-09-20 11:37:50 +10:00
Azareal ed481fb75b The parser handles these ones not the pre-parser. 2018-09-20 11:28:21 +10:00
Azareal 138a97d69b Added URL parser tests. 2018-09-20 11:11:44 +10:00
Azareal 6941786490 Reduce the amount of boilerplate for images in the parser. 2018-09-19 16:59:07 +10:00