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
Jérome Perrin
gitlab-ce
Commits
b04c5b06
Commit
b04c5b06
authored
Dec 02, 2015
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use form-actions where appropriate
parent
ffabf1df
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
23 additions
and
18 deletions
+23
-18
app/views/groups/edit.html.haml
app/views/groups/edit.html.haml
+2
-1
app/views/profiles/accounts/show.html.haml
app/views/profiles/accounts/show.html.haml
+10
-5
app/views/projects/blob/_new_dir.html.haml
app/views/projects/blob/_new_dir.html.haml
+3
-4
app/views/projects/blob/_upload.html.haml
app/views/projects/blob/_upload.html.haml
+3
-4
app/views/projects/edit.html.haml
app/views/projects/edit.html.haml
+4
-3
app/views/shared/_confirm_modal.html.haml
app/views/shared/_confirm_modal.html.haml
+1
-1
No files found.
app/views/groups/edit.html.haml
View file @
b04c5b06
...
@@ -44,4 +44,5 @@
...
@@ -44,4 +44,5 @@
%br
%br
%strong
Removed group can not be restored!
%strong
Removed group can not be restored!
=
link_to
'Remove Group'
,
@group
,
data:
{
confirm:
'Removed group can not be restored! Are you sure?'
},
method: :delete
,
class:
"btn btn-remove"
.form-actions
=
link_to
'Remove Group'
,
@group
,
data:
{
confirm:
'Removed group can not be restored! Are you sure?'
},
method: :delete
,
class:
"btn btn-remove"
app/views/profiles/accounts/show.html.haml
View file @
b04c5b06
...
@@ -23,10 +23,13 @@
...
@@ -23,10 +23,13 @@
%p
.cgray
%p
.cgray
-
if
current_user
.
private_token
-
if
current_user
.
private_token
=
text_field_tag
"token"
,
current_user
.
private_token
,
class:
"form-control"
=
text_field_tag
"token"
,
current_user
.
private_token
,
class:
"form-control"
%div
=
f
.
submit
'Reset private token'
,
data:
{
confirm:
"Are you sure?"
},
class:
"btn btn-default btn-build-token"
-
else
-
else
%span
You don`t have one yet. Click generate to fix it.
%span
You don`t have one yet. Click generate to fix it.
.form-actions
-
if
current_user
.
private_token
=
f
.
submit
'Reset private token'
,
data:
{
confirm:
"Are you sure?"
},
class:
"btn btn-default btn-build-token"
-
else
=
f
.
submit
'Generate'
,
class:
"btn btn-default btn-build-token"
=
f
.
submit
'Generate'
,
class:
"btn btn-default btn-build-token"
-
unless
current_user
.
ldap_user?
-
unless
current_user
.
ldap_user?
...
@@ -54,7 +57,8 @@
...
@@ -54,7 +57,8 @@
%p
%p
Each time you log in you’ll be required to provide your username and
Each time you log in you’ll be required to provide your username and
password as usual, plus a randomly-generated code from your phone.
password as usual, plus a randomly-generated code from your phone.
%div
.form-actions
=
link_to
'Enable Two-factor Authentication'
,
new_profile_two_factor_auth_path
,
class:
'btn btn-success'
=
link_to
'Enable Two-factor Authentication'
,
new_profile_two_factor_auth_path
,
class:
'btn btn-success'
-
if
button_based_providers
.
any?
-
if
button_based_providers
.
any?
...
@@ -89,7 +93,7 @@
...
@@ -89,7 +93,7 @@
Saving new username
Saving new username
%p
.light
%p
.light
=
user_url
(
@user
)
=
user_url
(
@user
)
%div
.form-actions
=
f
.
submit
'Save username'
,
class:
"btn btn-warning"
=
f
.
submit
'Save username'
,
class:
"btn btn-warning"
-
if
signup_enabled?
-
if
signup_enabled?
...
@@ -104,7 +108,8 @@
...
@@ -104,7 +108,8 @@
-
rp
=
current_user
.
personal_projects
.
count
-
rp
=
current_user
.
personal_projects
.
count
-
unless
rp
.
zero?
-
unless
rp
.
zero?
%li
#{
pluralize
rp
,
'personal project'
}
will be removed and cannot be restored
%li
#{
pluralize
rp
,
'personal project'
}
will be removed and cannot be restored
=
link_to
'Delete account'
,
user_registration_path
,
data:
{
confirm:
"REMOVE
#{
current_user
.
name
}
? Are you sure?"
},
method: :delete
,
class:
"btn btn-remove"
.form-actions
=
link_to
'Delete account'
,
user_registration_path
,
data:
{
confirm:
"REMOVE
#{
current_user
.
name
}
? Are you sure?"
},
method: :delete
,
class:
"btn btn-remove"
-
else
-
else
-
if
@user
.
solo_owned_groups
.
present?
-
if
@user
.
solo_owned_groups
.
present?
%p
%p
...
...
app/views/projects/blob/_new_dir.html.haml
View file @
b04c5b06
...
@@ -13,10 +13,9 @@
...
@@ -13,10 +13,9 @@
=
render
'shared/new_commit_form'
,
placeholder:
"Add new directory"
=
render
'shared/new_commit_form'
,
placeholder:
"Add new directory"
.form-group
.form-actions
.col-sm-offset-2.col-sm-10
=
submit_tag
"Create directory"
,
class:
'btn btn-create'
=
submit_tag
"Create directory"
,
class:
'btn btn-primary btn-create'
=
link_to
"Cancel"
,
'#'
,
class:
"btn btn-cancel"
,
"data-dismiss"
=>
"modal"
=
link_to
"Cancel"
,
'#'
,
class:
"btn btn-cancel"
,
"data-dismiss"
=>
"modal"
:javascript
:javascript
disableButtonIfAnyEmptyField
(
$
(
"
.js-create-dir-form
"
),
"
.form-control
"
,
"
.btn-create
"
);
disableButtonIfAnyEmptyField
(
$
(
"
.js-create-dir-form
"
),
"
.form-control
"
,
"
.btn-create
"
);
...
...
app/views/projects/blob/_upload.html.haml
View file @
b04c5b06
...
@@ -16,10 +16,9 @@
...
@@ -16,10 +16,9 @@
=
render
'shared/new_commit_form'
,
placeholder:
placeholder
=
render
'shared/new_commit_form'
,
placeholder:
placeholder
.form-group
.form-actions
.col-sm-offset-2.col-sm-10
=
button_tag
button_title
,
class:
'btn btn-small btn-create btn-upload-file'
,
id:
'submit-all'
=
button_tag
button_title
,
class:
'btn btn-small btn-primary btn-upload-file'
,
id:
'submit-all'
=
link_to
"Cancel"
,
'#'
,
class:
"btn btn-cancel"
,
"data-dismiss"
=>
"modal"
=
link_to
"Cancel"
,
'#'
,
class:
"btn btn-cancel"
,
"data-dismiss"
=>
"modal"
:javascript
:javascript
disableButtonIfEmptyField
(
$
(
'
.js-upload-blob-form
'
).
find
(
'
.js-commit-message
'
),
'
.btn-upload-file
'
);
disableButtonIfEmptyField
(
$
(
'
.js-upload-blob-form
'
).
find
(
'
.js-commit-message
'
),
'
.btn-upload-file
'
);
...
...
app/views/projects/edit.html.haml
View file @
b04c5b06
...
@@ -213,7 +213,8 @@
...
@@ -213,7 +213,8 @@
#{
link_to
@project
.
forked_from_project
.
name_with_namespace
,
project_path
(
@project
.
forked_from_project
)
}
.
#{
link_to
@project
.
forked_from_project
.
name_with_namespace
,
project_path
(
@project
.
forked_from_project
)
}
.
%br
%br
%strong
Once removed, the fork relationship cannot be restored and you will no longer be able to send merge requests to the source.
%strong
Once removed, the fork relationship cannot be restored and you will no longer be able to send merge requests to the source.
=
button_to
'Remove fork relationship'
,
'#'
,
class:
"btn btn-remove js-confirm-danger"
,
data:
{
"confirm-danger-message"
=>
remove_fork_project_message
(
@project
)
}
.form-actions
=
button_to
'Remove fork relationship'
,
'#'
,
class:
"btn btn-remove js-confirm-danger"
,
data:
{
"confirm-danger-message"
=>
remove_fork_project_message
(
@project
)
}
-
else
-
else
.nothing-here-block
Only the project owner can remove the fork relationship.
.nothing-here-block
Only the project owner can remove the fork relationship.
...
@@ -226,8 +227,8 @@
...
@@ -226,8 +227,8 @@
Removing the project will delete its repository and all related resources including issues, merge requests etc.
Removing the project will delete its repository and all related resources including issues, merge requests etc.
%br
%br
%strong
Removed projects cannot be restored!
%strong
Removed projects cannot be restored!
.form-actions
=
button_to
'Remove project'
,
'#'
,
class:
"btn btn-remove js-confirm-danger"
,
data:
{
"confirm-danger-message"
=>
remove_project_message
(
@project
)
}
=
button_to
'Remove project'
,
'#'
,
class:
"btn btn-remove js-confirm-danger"
,
data:
{
"confirm-danger-message"
=>
remove_project_message
(
@project
)
}
-
else
-
else
.nothing-here-block
Only the project owner can remove a project.
.nothing-here-block
Only the project owner can remove a project.
...
...
app/views/shared/_confirm_modal.html.haml
View file @
b04c5b06
...
@@ -19,5 +19,5 @@
...
@@ -19,5 +19,5 @@
.form-group
.form-group
=
text_field_tag
'confirm_name_input'
,
''
,
class:
'form-control js-confirm-danger-input'
=
text_field_tag
'confirm_name_input'
,
''
,
class:
'form-control js-confirm-danger-input'
.form-
group
.form-
actions
=
submit_tag
'Confirm'
,
class:
"btn btn-danger js-confirm-danger-submit"
=
submit_tag
'Confirm'
,
class:
"btn btn-danger js-confirm-danger-submit"
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