Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
d8f88aa4
Commit
d8f88aa4
authored
Aug 13, 2016
by
Luke Bennett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Review changes
parent
673806a2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
app/assets/javascripts/abuse_reports.js.es6
app/assets/javascripts/abuse_reports.js.es6
+4
-4
app/assets/stylesheets/pages/admin.scss
app/assets/stylesheets/pages/admin.scss
+4
-1
No files found.
app/assets/javascripts/abuse_reports.js.es6
View file @
d8f88aa4
...
@@ -12,8 +12,8 @@ window.gl = window.gl || {};
...
@@ -12,8 +12,8 @@ window.gl = window.gl || {};
}
}
truncateLongMessage() {
truncateLongMessage() {
le
t $messageCellElement = $(this);
cons
t $messageCellElement = $(this);
le
t reportMessage = $messageCellElement.text();
cons
t reportMessage = $messageCellElement.text();
if (reportMessage.length > MAX_MESSAGE_LENGTH) {
if (reportMessage.length > MAX_MESSAGE_LENGTH) {
$messageCellElement.data('original-message', reportMessage);
$messageCellElement.data('original-message', reportMessage);
$messageCellElement.data('message-truncated', 'true');
$messageCellElement.data('message-truncated', 'true');
...
@@ -22,8 +22,8 @@ window.gl = window.gl || {};
...
@@ -22,8 +22,8 @@ window.gl = window.gl || {};
}
}
toggleMessageTruncation() {
toggleMessageTruncation() {
le
t $messageCellElement = $(this);
cons
t $messageCellElement = $(this);
le
t originalMessage = $messageCellElement.data('original-message');
cons
t originalMessage = $messageCellElement.data('original-message');
if (!originalMessage) return;
if (!originalMessage) return;
if ($messageCellElement.data('message-truncated') === 'true') {
if ($messageCellElement.data('message-truncated') === 'true') {
$messageCellElement.data('message-truncated', 'false');
$messageCellElement.data('message-truncated', 'false');
...
...
app/assets/stylesheets/pages/admin.scss
View file @
d8f88aa4
...
@@ -108,7 +108,10 @@
...
@@ -108,7 +108,10 @@
.message
{
.message
{
word-wrap
:
break-word
;
word-wrap
:
break-word
;
}
}
.btn
{
white-space
:
normal
;
padding
:
$gl-btn-padding
;
}
th
{
th
{
width
:
15%
;
width
:
15%
;
&
.wide
{
&
.wide
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment