Miles Cellar
f2075ec3bf
Create core.ref.posts reused translation to replace multiple occurences
2017-11-29 19:49:12 +01:00
Miles Cellar
65813f1dbd
Use reused translation on the Statistics dashboard widget
2017-11-29 19:40:54 +01:00
Toby Zerner
6035615660
Move view logic into middleware
2017-11-29 22:25:57 +10:30
Toby Zerner
e10baaaf62
Fix last commit
2017-11-29 22:22:14 +10:30
Toby Zerner
1584261541
Generate URL in the controller instead of the view
2017-11-29 22:20:06 +10:30
Toby Zerner
a0587ec68a
Update translations for dashboard overhaul
2017-11-29 17:22:17 +10:30
Toby Zerner
d592322a61
Basic implementation of dashboard widgets, statistics
...
Currently not user-customizable. Just needed to display statistics for a
client, so figured I'd make a start at this. Nothing too fancy for now,
but I'm sure some people will be happy to have this information at their
fingertips.
2017-11-29 17:19:20 +10:30
Toby Zerner
50047851d1
More precise permission check for email gambit
2017-11-29 17:02:49 +10:30
Toby Zerner
cb8c6d71bc
Fix admin error handling
2017-11-29 16:10:22 +10:30
Daniël Klabbers
93355a3ceb
reverting translator contract
2017-11-29 06:26:48 +01:00
Toby Zerner
034ee27522
Preserve return URL when confirming logout
2017-11-29 13:47:00 +10:30
Toby Zerner
e4d863842a
Add translation for 404 error return link
2017-11-29 13:23:55 +10:30
Toby Zerner
21c9eae502
Add a "return home" link to 404 errors
2017-11-29 13:23:25 +10:30
Toby Zerner
4369ff350b
Add translations for errors messages, log out confirmation
2017-11-29 13:05:10 +10:30
Toby Zerner
8c900dec01
Update translations for reset password UI
2017-11-29 13:04:56 +10:30
Toby Zerner
ca1f2d8a80
New design for error pages. closes #252
2017-11-29 13:03:55 +10:30
Toby Zerner
68ca96cb7b
Add log out confirmation if CSRF token is invalid. fixes #1282
2017-11-29 13:03:16 +10:30
Toby Zerner
243275de89
Use HtmlResponse in AbstractHtmlController
2017-11-29 12:54:11 +10:30
Toby Zerner
41a4551d94
Make URLs more verbose
2017-11-29 12:53:39 +10:30
Toby Zerner
b43a60280a
New design for reset password view
2017-11-29 12:53:06 +10:30
Toby Zerner
35a8fe97f6
Restructure views
...
- Use Laravel's view namespacing rather than the full file path
- Organise views into directories
2017-11-29 12:51:24 +10:30
Daniel Klabbers
6e8b9f8814
must be an empty line
2017-11-27 14:19:18 +01:00
Daniel Klabbers
9e9136d9be
re-added a precious line
2017-11-27 14:18:28 +01:00
Daniel Klabbers
a7bcc79085
patched up the Scope implementation as requested
2017-11-27 14:17:17 +01:00
Daniel Klabbers
4b7eeb2564
Using Core Translator in Locale Manager, type hinted its methods and removed unnecessary phpdoc
2017-11-27 14:03:45 +01:00
Daniel Klabbers
2e571c425a
pleasing the angry god Circle
2017-11-27 11:05:15 +01:00
Daniel Klabbers
c8e1d71702
replaced the Symfony\Component\Translation\TranslationInterface with the Illuminate\Contracts\Translation\Translator, deprecating the Symfony version
2017-11-27 10:42:16 +01:00
Daniel Klabbers
386416c017
fixed alias/reference loading for translation strings
2017-11-27 10:35:57 +01:00
Daniel Klabbers
4c94ad5df4
applied laravel contract
2017-11-27 09:49:19 +01:00
Toby Zerner
95285a9a54
Actually list users returned from the API when searching
2017-11-20 10:37:21 +10:30
Toby Zerner
78dafa76c5
Fix email gambit
2017-11-20 09:17:44 +10:30
Toby Zerner
20f6a256d5
Only touch orders property if we're going to add to it
2017-11-13 13:18:36 +10:30
Toby Zerner
68f9baf974
Merge pull request #1261 from josephnle/drag-and-drop-avatar-upload
...
Add drag and drop avatar uploading
2017-11-13 01:33:29 +02:00
Toby Zerner
c7d7b2d360
Fix subsequent pages of results not working properly
2017-11-13 09:17:55 +10:30
Toby Zerner
0ce00c6d16
Performance: Refactor SQL that pins unread sticky posts to the top
...
Ordering by `is_sticky and (unread subquery) desc` removes MySQL's
ability to use an index for ordering by `last_time`, which triggers a
filesort across the whole discussions table which is BAD.
This commit uses a union to add all stickied discussions to the query.
The results of the unioned queries are then ordered by the `is_sticky
and (unread subquery)` criteria, so the filesort only takes place on
a maximum of limit * 2 rows. Big performance win when you get up to
thousands of discussions!
2017-11-12 21:28:17 +10:30
Toby Zerner
a05e8c817e
Don't over-cache the disallowed tags
2017-11-12 21:14:53 +10:30
Toby Zerner
19794bb19b
Performance: Assign parent discussions to posts so they don't have to be reloaded
2017-11-12 21:14:19 +10:30
Toby Zerner
5116cf7d75
Performance: Load only basic information about post discussion/users
2017-11-11 23:15:36 +10:30
Toby Zerner
a4849355aa
Performance: Load only basic information about terminal/relevant posts
2017-11-11 22:57:41 +10:30
Toby Zerner
89a43d1adf
Performance: Cache translation catalogue to avoid reparsing YAML
2017-11-11 22:45:38 +10:30
Toby Zerner
99686ef8bb
Performance: Assign parent discussion to posts so it doesn't have to be reloaded
2017-11-11 22:44:45 +10:30
Toby Zerner
0479c03502
Performance: Reuse list of disallowed tags
2017-11-11 22:43:07 +10:30
Toby Zerner
89f417097b
Performance: Load only basic information about lastDiscussion
2017-11-11 22:40:48 +10:30
Toby Zerner
6a21d292c5
Performance: Eager load parent tags
2017-11-11 22:40:22 +10:30
Toby Zerner
14215773b3
Fix positioning of quote button when parents are positioned relatively
2017-11-10 17:45:21 +10:30
Toby Zerner
41616e45ca
Revert omission of image size
...
Turns out this is still required in SVG mode :D
2017-11-09 21:00:27 +10:30
Toby Zerner
ca788d711c
Remove B) shortcut
...
It's pretty common in text (eg. and A), B), C) list) and is usually not
intended.
2017-11-08 20:21:41 +10:30
Zeokat
996f1724de
Use SVG emoji instead of PNG
2017-11-08 20:18:26 +10:30
Toby Zerner
7ff57e1ba4
Refactor sticky order clause into a subquery
...
Based on some limited testing, using a subquery seems to outperform a
join in this case (the join was invoking a temporary table, which is
always a bad sign).
This also adds logic to fix a bug where sticky discussions would remain
at the top even when marked as read using the "mark all as read" button.
I thought we had an open issue for this somewhere, but I can't seem to
find one. ref #988 #1003
2017-11-08 11:34:37 +10:30
Toby Zerner
b4375e4f7d
Fix Composer textarea losing its height across route changes
...
There is a Mithril bug which causes context.retain to be ineffective for
children nodes. https://github.com/MithrilJS/mithril.js/issues/1300
Thus, we have to assume that the children nodes (like the textarea)
may be recreated and thus we need to update its height on each redraw.
fixes #948
2017-11-07 21:12:03 +10:30