1
0
mirror of https://github.com/flarum/core.git synced 2025-08-28 18:40:46 +02:00
Commit Graph

8745 Commits

Author SHA1 Message Date
Toby Zerner
cbab23a3f5 Fix bug in permission logic 2016-05-27 14:46:11 +09:30
Toby Zerner
a4a3185233 Add new translations for flarum-ext-approval 2016-05-27 14:42:31 +09:30
Toby Zerner
822e823936 Compatibility with new "required permissions" concept 2016-05-27 14:41:48 +09:30
Toby Zerner
4282b9be20 Add separate "start discussions without approval" permission
- Register required permissions so that "start discussions without approval" can only be set for groups that already have permission to "start discussions" (and same for reply)
- Change the "hidden" trash badge into a more descriptive gavel badge for discussions that are awaiting approval

closes flarum/core#904
2016-05-27 14:40:59 +09:30
Toby Zerner
059950ef4a Simplify deleted post toggle CSS
(The animation was buggy anyway)
2016-05-27 13:56:56 +09:30
Toby Zerner
cc36542b40 Only check for reply permission for actual replies. fixes #917 2016-05-27 13:56:04 +09:30
Toby Zerner
d4a333e2b8 Fix notifications dropdown not showing 2016-05-27 13:53:50 +09:30
Toby Zerner
8d26d2ee8f Improve permissions page
- Introduce the concept of "required permissions" - basically a permission dependency tree. In order for a group to be granted one permission, they must also have another.
- Improve redraw performance by not building dropdown menu contents until dropdown is opened

ref #904
2016-05-27 12:42:19 +09:30
Toby Zerner
3bfd5ee35d Give PostEdited default cursor; make info slightly more compact 2016-05-27 12:39:15 +09:30
Toby Zerner
4c3ebe2538 Fix PostEdited tooltip not updating 2016-05-27 12:38:28 +09:30
Toby Zerner
dc21bbb743 Fix detection of whether or not an asset file is "empty"
We can't rely on files/strings for this, since the Locale JsCompiler doesn't use either, but still has content.
2016-05-27 12:20:14 +09:30
Franz Liedke
558f2103ef Make StyleCI happy and fix some docblocks 2016-05-27 09:07:49 +09:00
Davis
e41a427a6b Trim spaces in getPlainContent, prevent images from loading
fixes #834 closes #963
2016-05-27 07:34:57 +09:30
Toby Zerner
500cdbbcb3 Recompile dist JS 2016-05-27 07:32:36 +09:30
Davis
6061f404f9 Fix Permission Name (#965) 2016-05-26 23:54:25 +09:00
Toby Zerner
fd59f0ee48 Prevent mentions summary from blocking post controls 2016-05-26 22:26:05 +09:30
Toby Zerner
7d448e81ff Bring post controls dropdown in front of the composer again
The underlying problem is fixed in flarum-ext-mentions.
2016-05-26 22:25:39 +09:30
Toby Zerner
fbe87416cf Don't write/serve empty asset files
The new locale-specific CSS file doesn't have any content by default, so it's a waste to write it and serve it to the user.
2016-05-26 22:24:56 +09:30
Toby Zerner
ed8a145348 Rename Server register API to extend
More consistent with how extensions work
2016-05-26 19:12:32 +09:30
Toby Zerner
c809f329bb Update settings reference 2016-05-26 19:05:28 +09:30
Toby Zerner
d2bce5d756 Refactor the web app bootstrapping code
- All custom JS variables are now preloaded into the `app.data` object, rather than directly on the `app` object. This means that admin settings are available in `app.data.settings` rather than `app.settings`, etc.
- Cleaner route handler generation
- Renamed ConfigureClientView to ConfigureWebApp, though the former still exists and is deprecated
- Partial fix for #881 (strips ?nojs=1 from URL if possible, so that refreshing will attempt to load JS version again)
2016-05-26 19:04:24 +09:30
Maël Soucaze
bf31979a59 Remove unnecessary double quotes (#77) 2016-05-23 22:59:16 +09:00
Maël Soucaze
dfd614e6ea Add language line for image dimensions validation rule (#78)
See: da64a014e7
2016-05-23 22:59:04 +09:00
Franz Liedke
e07b5eb8eb Recompile dist JS 2016-05-23 22:54:48 +09:00
Dominion
afeee3af4b Pluralize Turkish (#967)
- Changes the pluralization category of Turkish.
- See: https://discuss.flarum.org/d/2937-pluralization-problems
2016-05-23 22:53:33 +09:00
Franz Liedke
a7f20e67ea Update TextFormatter to next release
This fixes some minor issues with emojis working correctly in the dropdown,
but not when rendered in the live preview or from the server.
2016-05-23 22:48:59 +09:00
Toby Zerner
310fed2329 Tweak quote button positioning/style
Now appears where your cursor ends the selection, but not overlapping text.
2016-05-22 14:05:38 +09:30
Toby Zerner
93c4cd8960 Merge pull request #76 from dcsjapan/misc-cleanup
Clean up translation keys
2016-05-21 22:05:51 +09:30
Dominion
682da85dfc Clean up translation keys (#964)
- Corrects the suffix on a key in the Change Email modal.
- Extracts the title of the Edit User modal.
2016-05-21 22:03:57 +09:30
Toby Zerner
cf9e032693 Add translation for "view post IP addresses" permission 2016-05-21 22:03:31 +09:30
dcsjapan
58daef61c3 Clean up translation keys
- Removes two obsolete keys from the Extensions page.
- Corrects the suffix on a key in the Change Email modal.
- Extracts the title of the Edit User modal.
- Reorders keys in `core.email` namespace.
- Supports flarum/core#964
2016-05-21 21:32:54 +09:00
Davis
e4a758dfdf Show post IP address in meta dropdown. closes #956 closes #657 2016-05-21 22:02:42 +09:30
Sajjad Hasehmian
a05600b91e Show quote button when post text is selected
closes #19 closes flarum/core#320
2016-05-21 21:37:48 +09:30
Toby Zerner
ae7b67223a Merge pull request #74 from sijad/quote-select
Add Quote button translation for mentions
2016-05-21 20:40:59 +09:30
Toby Zerner
fbad6ab8cb Add label to dismiss flag button, change icon to eye-slash
ref #7 cc @jordanjay29
2016-05-21 20:35:13 +09:30
Toby Zerner
6c878cfced Correct order of compiled JavaScript modules 2016-05-21 20:32:06 +09:30
Toby Zerner
363cc4acb1 Add API to allow skeleton to customise the Application instance 2016-05-21 20:31:42 +09:30
Toby Zerner
9f00d8245c Fix crash on reset password page 2016-05-21 20:29:38 +09:30
Toby Zerner
cf1b71e76a Fix wonky avatar display when expanding a deleted post 2016-05-21 20:29:04 +09:30
Toby Zerner
93de8f4a7d Change dismiss flag from tooltip into button 2016-05-21 20:28:38 +09:30
Toby Zerner
2c57f74608 Add translation for post "Edited" indicator 2016-05-21 20:28:29 +09:30
Toby Zerner
553b8f6b29 Move details from post edited indicator back into a tooltip
Showing the username and time of edit is TMI (too much information). This commit changes the visible text to "Edited", and shows the full edit information in a tooltip.

ref #446
2016-05-21 20:27:56 +09:30
Toby Zerner
edbc1164d1 Automatically support basic HTML tags in translations
This allows front-end translations to use basic (attributeless) HTML tags freely, without the need for the translator call to supply a matching vdom element. Translations can thus make use of styling (<em>, <code>, etc.) as they see fit. The translator call can still optionally supply a vdom element to substitute in more complex tags where necessary (e.g. hyperlinks).

/cc @dcsjapan
2016-05-21 20:25:32 +09:30
Sjjad Hashemian
e4775c6a91 Add Quote button translation for mentions 2016-05-18 11:05:35 +04:30
Franz Liedke
da65528d2d Merge pull request #7 from jordanjay29/patch-1
Change fa-times to fa-cancel
2016-05-16 14:59:56 +09:00
jordanjay29
044d43c18c Change fa-times to fa-cancel
Mitigates confusion over button's immediate action, whether it will dismiss flag or delete post. In isolation, fa-times looks ambiguous enough to delete the post, which may delay a moderator's action when choosing how to respond. By replacing it with fa-ban, it should be immediately obvious that the action taken by the button will dismiss the flag, and not modify the post at all.
2016-05-15 21:48:56 -05:00
Franz Liedke
84974d3f31 Use newly extracted KeyboardNavigatable util for emoji dropdown
Refs flarum/core#264.
2016-05-15 23:18:29 +09:00
Franz Liedke
829f0e0275 Customize behavior for various navigation callbacks, pass KeyboardEvent instance to callback
Refs #264.
2016-05-15 23:09:59 +09:00
Franz Liedke
a2b961e525 Make key callback registration more concise
Refs #264.
2016-05-15 22:58:41 +09:00
Franz Liedke
8c280b0b15 Use newly extracted KeyboardNavigatable util for emoji dropdown
Refs flarum/core#264.
2016-05-15 22:42:15 +09:00