mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-27 17:51:09 +00:00
Merge "Add square brackets around reply link and use lower case (when possible)"
This commit is contained in:
commit
6eb9824e8c
|
@ -9,7 +9,7 @@
|
|||
"discussiontools-preference-description": "Enable a new workflow for [https://www.mediawiki.org/wiki/Talk_pages_project/replying replying to specific comments] on talk pages.\n\nPlease note that over time new tools for interacting with talk pages will be added.\n\nUpdates about these features will be posted on the [https://www.mediawiki.org/wiki/Talk_pages_project/Updates talk pages project's updates page].",
|
||||
"discussiontools-preference-info-link": "https:\/\/mediawiki.org\/wiki\/Special:MyLanguage\/Talk_pages_project",
|
||||
"discussiontools-preference-discussion-link": "https:\/\/mediawiki.org\/wiki\/Talk:Talk_pages_project",
|
||||
"discussiontools-replylink": "Reply",
|
||||
"discussiontools-replylink": "reply",
|
||||
"discussiontools-replywidget-anon-warning": "<strong>You are not logged in.</strong> To receive attribution with your name instead of your IP address, you can [$1 log in] or [$2 create an account].",
|
||||
"discussiontools-replywidget-cancel": "Cancel",
|
||||
"discussiontools-replywidget-feedback": "Share feedback about this feature",
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
"discussiontools-preference-description": "Used in [[Special:Preferences]].\n\nUsed as description for the checkbox to enable discussion tools.\n\nThe label for this checkbox is {{msg-mw|discussiontools-preference-label}}.",
|
||||
"discussiontools-preference-info-link": "{{optional|Used on [[Special:Preferences]] as a link to a page where users can learn about this Beta Feature. Defaults to a page on MediaWiki.org.}}",
|
||||
"discussiontools-preference-discussion-link": "{{optional|Used on [[Special:Preferences]] as a link to a page where users can discuss this Beta Feature. Defaults to a page on MediaWiki.org.}}",
|
||||
"discussiontools-replylink": "Label for the reply link added after each comment.",
|
||||
"discussiontools-replylink": "Label for the reply link added after each comment. Use the same casing as section edit links.\n* {{Related|editsection}}.",
|
||||
"discussiontools-replywidget-anon-warning": "Warning message to be displayed when anonymous user starts writing a new topic or reply.\n* $1 is a URL to log in.\n* $2 is a URL to register an account.",
|
||||
"discussiontools-replywidget-cancel": "Label for the cancel button in the reply widget",
|
||||
"discussiontools-replywidget-feedback": "Label for link to share feedback about the reply widget",
|
||||
|
|
|
@ -41,7 +41,11 @@ function CommentController( $pageContainer, comment, thread ) {
|
|||
} )
|
||||
.on( 'click keypress', this.onReplyLinkClick.bind( this ) );
|
||||
|
||||
this.$replyLinkButtons.append( this.$replyLink );
|
||||
this.$replyLinkButtons.append(
|
||||
$( '<span>' ).addClass( 'dt-init-replylink-bracket' ).text( '[' ),
|
||||
this.$replyLink,
|
||||
$( '<span>' ).addClass( 'dt-init-replylink-bracket' ).text( ']' )
|
||||
);
|
||||
modifier.addReplyLink( comment, this.$replyLinkButtons[ 0 ] );
|
||||
|
||||
if ( storage.get( 'reply/' + comment.id + '/saveable' ) ) {
|
||||
|
|
|
@ -1,11 +1,26 @@
|
|||
.dt-init-replylink-buttons {
|
||||
user-select: none;
|
||||
margin-left: 0.25em;
|
||||
margin-left: 0.5em;
|
||||
|
||||
.dt-init-replylink-reply {
|
||||
.dt-init-replylink {
|
||||
&-reply {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
// Similar to mw-editsection-bracket
|
||||
&-bracket {
|
||||
color: #54595d;
|
||||
|
||||
&:first-of-type {
|
||||
margin-right: 0.25em;
|
||||
}
|
||||
|
||||
&:not( :first-of-type ) {
|
||||
margin-left: 0.25em;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.dt-init-replylink-active {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue