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
Léo-Paul Géneau
gitlab-ce
Commits
67fd6b86
Commit
67fd6b86
authored
Aug 06, 2017
by
Jacob Schatz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Edit button to class.
parent
2c6895d6
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
4 deletions
+3
-4
app/assets/javascripts/repo/index.js
app/assets/javascripts/repo/index.js
+1
-2
app/assets/stylesheets/pages/repo.scss
app/assets/stylesheets/pages/repo.scss
+1
-1
app/views/shared/repo/_editable_mode.html.haml
app/views/shared/repo/_editable_mode.html.haml
+1
-1
No files found.
app/assets/javascripts/repo/index.js
View file @
67fd6b86
...
@@ -58,8 +58,7 @@ function initRepoEditButton(el) {
...
@@ -58,8 +58,7 @@ function initRepoEditButton(el) {
function
initRepoBundle
()
{
function
initRepoBundle
()
{
const
repo
=
document
.
getElementById
(
'
repo
'
);
const
repo
=
document
.
getElementById
(
'
repo
'
);
const
editButton
=
document
.
getElementById
(
'
editable-mode
'
);
const
editButton
=
document
.
querySelector
(
'
.editable-mode
'
);
setInitialStore
(
repo
.
dataset
);
setInitialStore
(
repo
.
dataset
);
addEventsForNonVueEls
();
addEventsForNonVueEls
();
initDropdowns
();
initDropdowns
();
...
...
app/assets/stylesheets/pages/repo.scss
View file @
67fd6b86
...
@@ -43,7 +43,7 @@
...
@@ -43,7 +43,7 @@
@include
str-truncated
(
250px
);
@include
str-truncated
(
250px
);
}
}
#
editable-mode
{
.
editable-mode
{
display
:
inline-block
;
display
:
inline-block
;
}
}
...
...
app/views/shared/repo/_editable_mode.html.haml
View file @
67fd6b86
#
editable-mode
.
editable-mode
%repo-edit-button
%repo-edit-button
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