mirror of
https://github.com/discourse/discourse-signatures.git
synced 2025-12-13 10:23:31 +00:00
FIX: Forgot needed files in previous commit
This commit is contained in:
parent
1ff4e7e1d5
commit
65d24d2b98
@ -0,0 +1,12 @@
|
||||
import Post from 'discourse/models/post';
|
||||
import User from 'discourse/models/user';
|
||||
|
||||
export default {
|
||||
name: 'extend-for-signatures',
|
||||
initialize() {
|
||||
|
||||
Post.reopen({
|
||||
showSignatures: Discourse.SiteSettings.signatures_enabled && Discourse.User.currentProp("custom_fields.see_signatures")
|
||||
});
|
||||
}
|
||||
};
|
||||
@ -0,0 +1,10 @@
|
||||
<div class='controls'>
|
||||
<label class='checkbox-label'>
|
||||
{{input type="checkbox" checked=controller.model.custom_fields.see_signatures}}
|
||||
See user signatures below posts
|
||||
</label>
|
||||
<label class='text-label'>
|
||||
{{input type="text" value=controller.model.custom_fields.signature_url}}
|
||||
Signature URL Image
|
||||
</label>
|
||||
</div>
|
||||
Loading…
x
Reference in New Issue
Block a user