Azareal
de78268b20
Added level progress indicators, still WIP.
...
Fixed a bug where GetLevelScore wouldn't work and simplified it slightly.
Removed the account_dash_next_level phrase.
Added the account_dash_level phrase.
2018-10-08 15:34:25 +10:00
Azareal
4d75c543d2
Refactored most of the string-string tests to reduce the amount of boilerplate.
2018-10-08 14:38:51 +10:00
Azareal
f721780c0d
Refactored some of the reply tests.
...
Added some topic post count tests.
Added a very simple action post test.
Changed the signature of *Topic.CreateActionReply to take an integer rather than a *User.
2018-10-08 14:15:06 +10:00
Azareal
2acf4e1568
Added simple tests for the modlogs and adminlogs.
2018-10-08 12:51:59 +10:00
Azareal
650a8a9be1
Added tests for the topic methods and topic creation.
...
Added a few more cases to TestWordCount.
2018-10-07 20:46:49 +10:00
Azareal
ad61b5d8b2
MySQL being stupid x.x - #3
2018-10-07 11:33:03 +10:00
Azareal
b6220d03d3
Don't forget to commit the rebuilt queries - #3
2018-10-07 11:24:53 +10:00
Azareal
ebbfa7d247
Bumped up the version of MariaDB on Travis.
...
Replaced a couple of expects with expectNilErrs so we don't lose the original errors messages in those tests.
Fixed a couple more MySQL default value issues.
2018-10-07 00:02:52 +10:00
Azareal
644bba36e3
Localised more alert strings.
...
Renamed most of the alert phrases.
Fixes #3 - Default value issue with MySQL.
Fixed a bug where pages would't load with HTTPS disabled.
2018-10-06 23:14:11 +10:00
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