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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
21785171
Commit
21785171
authored
Apr 13, 2018
by
Clement Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[skip ci] Convert .label. to .badge.
parent
b1c4fdec
Changes
39
Hide whitespace changes
Inline
Side-by-side
Showing
39 changed files
with
67 additions
and
67 deletions
+67
-67
app/views/admin/hook_logs/_index.html.haml
app/views/admin/hook_logs/_index.html.haml
+1
-1
app/views/admin/hooks/index.html.haml
app/views/admin/hooks/index.html.haml
+2
-2
app/views/admin/projects/_projects.html.haml
app/views/admin/projects/_projects.html.haml
+1
-1
app/views/admin/runners/_runner.html.haml
app/views/admin/runners/_runner.html.haml
+5
-5
app/views/admin/runners/index.html.haml
app/views/admin/runners/index.html.haml
+4
-4
app/views/admin/users/_user.html.haml
app/views/admin/users/_user.html.haml
+3
-3
app/views/groups/projects.html.haml
app/views/groups/projects.html.haml
+1
-1
app/views/profiles/emails/index.html.haml
app/views/profiles/emails/index.html.haml
+5
-5
app/views/projects/blob/_header_content.html.haml
app/views/projects/blob/_header_content.html.haml
+1
-1
app/views/projects/branches/_branch.html.haml
app/views/projects/branches/_branch.html.haml
+3
-3
app/views/projects/ci/builds/_build.html.haml
app/views/projects/ci/builds/_build.html.haml
+4
-4
app/views/projects/commits/_commit.html.haml
app/views/projects/commits/_commit.html.haml
+1
-1
app/views/projects/diffs/_file_header.html.haml
app/views/projects/diffs/_file_header.html.haml
+1
-1
app/views/projects/generic_commit_statuses/_generic_commit_status.html.haml
.../generic_commit_statuses/_generic_commit_status.html.haml
+2
-2
app/views/projects/hook_logs/_index.html.haml
app/views/projects/hook_logs/_index.html.haml
+1
-1
app/views/projects/jobs/show.html.haml
app/views/projects/jobs/show.html.haml
+1
-1
app/views/projects/merge_requests/invalid.html.haml
app/views/projects/merge_requests/invalid.html.haml
+4
-4
app/views/projects/pages/_list.html.haml
app/views/projects/pages/_list.html.haml
+2
-2
app/views/projects/protected_branches/shared/_matching_branch.html.haml
...ects/protected_branches/shared/_matching_branch.html.haml
+1
-1
app/views/projects/protected_branches/shared/_protected_branch.html.haml
...cts/protected_branches/shared/_protected_branch.html.haml
+1
-1
app/views/projects/protected_tags/shared/_matching_tag.html.haml
...ws/projects/protected_tags/shared/_matching_tag.html.haml
+1
-1
app/views/projects/protected_tags/shared/_protected_tag.html.haml
...s/projects/protected_tags/shared/_protected_tag.html.haml
+1
-1
app/views/projects/runners/_index.html.haml
app/views/projects/runners/_index.html.haml
+2
-2
app/views/projects/runners/_runner.html.haml
app/views/projects/runners/_runner.html.haml
+1
-1
app/views/projects/runners/show.html.haml
app/views/projects/runners/show.html.haml
+1
-1
app/views/projects/settings/integrations/_project_hook.html.haml
...ws/projects/settings/integrations/_project_hook.html.haml
+1
-1
app/views/projects/tags/_tag.html.haml
app/views/projects/tags/_tag.html.haml
+1
-1
app/views/projects/tags/show.html.haml
app/views/projects/tags/show.html.haml
+1
-1
app/views/projects/tree/_blob_item.html.haml
app/views/projects/tree/_blob_item.html.haml
+1
-1
app/views/projects/triggers/_content.html.haml
app/views/projects/triggers/_content.html.haml
+1
-1
app/views/projects/triggers/_trigger.html.haml
app/views/projects/triggers/_trigger.html.haml
+2
-2
app/views/search/results/_issue.html.haml
app/views/search/results/_issue.html.haml
+1
-1
app/views/search/results/_merge_request.html.haml
app/views/search/results/_merge_request.html.haml
+2
-2
app/views/search/results/_snippet_title.html.haml
app/views/search/results/_snippet_title.html.haml
+1
-1
app/views/shared/boards/components/sidebar/_labels.html.haml
app/views/shared/boards/components/sidebar/_labels.html.haml
+1
-1
app/views/shared/hook_logs/_content.html.haml
app/views/shared/hook_logs/_content.html.haml
+1
-1
app/views/shared/members/_member.html.haml
app/views/shared/members/_member.html.haml
+2
-2
app/views/shared/milestones/_milestone.html.haml
app/views/shared/milestones/_milestone.html.haml
+1
-1
app/views/shared/projects/_project.html.haml
app/views/shared/projects/_project.html.haml
+1
-1
No files found.
app/views/admin/hook_logs/_index.html.haml
View file @
21785171
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
%td
%td
=
render
partial:
'shared/hook_logs/status_label'
,
locals:
{
hook_log:
hook_log
}
=
render
partial:
'shared/hook_logs/status_label'
,
locals:
{
hook_log:
hook_log
}
%td
.d-none.d-sm-block
%td
.d-none.d-sm-block
%span
.
label
.label-gray.deploy-project-label
%span
.
badge
.label-gray.deploy-project-label
=
hook_log
.
trigger
.
singularize
.
titleize
=
hook_log
.
trigger
.
singularize
.
titleize
%td
%td
=
truncate
(
hook_log
.
url
,
length:
50
)
=
truncate
(
hook_log
.
url
,
length:
50
)
...
...
app/views/admin/hooks/index.html.haml
View file @
21785171
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
%div
%div
-
SystemHook
.
triggers
.
each_value
do
|
event
|
-
SystemHook
.
triggers
.
each_value
do
|
event
|
-
if
hook
.
public_send
(
event
)
-
if
hook
.
public_send
(
event
)
%span
.
label
.label-gray
=
event
.
to_s
.
titleize
%span
.
badge
.label-gray
=
event
.
to_s
.
titleize
%span
.
label
.label-gray
SSL Verification:
#{
hook
.
enable_ssl_verification
?
'enabled'
:
'disabled'
}
%span
.
badge
.label-gray
SSL Verification:
#{
hook
.
enable_ssl_verification
?
'enabled'
:
'disabled'
}
=
render
'shared/plugins/index'
=
render
'shared/plugins/index'
app/views/admin/projects/_projects.html.haml
View file @
21785171
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
%span
.badge.badge-pill
%span
.badge.badge-pill
=
storage_counter
(
project
.
statistics
.
storage_size
)
=
storage_counter
(
project
.
statistics
.
storage_size
)
-
if
project
.
archived
-
if
project
.
archived
%span
.
label
.label-warning
archived
%span
.
badge
.label-warning
archived
.title
.title
=
link_to
[
:admin
,
project
.
namespace
.
becomes
(
Namespace
),
project
]
do
=
link_to
[
:admin
,
project
.
namespace
.
becomes
(
Namespace
),
project
]
do
.dash-project-avatar
.dash-project-avatar
...
...
app/views/admin/runners/_runner.html.haml
View file @
21785171
%tr
{
id:
dom_id
(
runner
)
}
%tr
{
id:
dom_id
(
runner
)
}
%td
%td
-
if
runner
.
shared?
-
if
runner
.
shared?
%span
.
label
.label-success
shared
%span
.
badge
.label-success
shared
-
else
-
else
%span
.
label
.label-info
specific
%span
.
badge
.label-info
specific
-
if
runner
.
locked?
-
if
runner
.
locked?
%span
.
label
.label-warning
locked
%span
.
badge
.label-warning
locked
-
unless
runner
.
active?
-
unless
runner
.
active?
%span
.
label
.label-danger
paused
%span
.
badge
.label-danger
paused
%td
%td
=
link_to
admin_runner_path
(
runner
)
do
=
link_to
admin_runner_path
(
runner
)
do
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
#{
runner
.
builds
.
count
(
:all
)
}
#{
runner
.
builds
.
count
(
:all
)
}
%td
%td
-
runner
.
tag_list
.
sort
.
each
do
|
tag
|
-
runner
.
tag_list
.
sort
.
each
do
|
tag
|
%span
.
label
.label-primary
%span
.
badge
.label-primary
=
tag
=
tag
%td
%td
-
if
runner
.
contacted_at
-
if
runner
.
contacted_at
...
...
app/views/admin/runners/index.html.haml
View file @
21785171
...
@@ -14,16 +14,16 @@
...
@@ -14,16 +14,16 @@
%span
Each Runner can be in one of the following states:
%span
Each Runner can be in one of the following states:
%ul
%ul
%li
%li
%span
.
label
.label-success
shared
%span
.
badge
.label-success
shared
\- Runner runs jobs from all unassigned projects
\- Runner runs jobs from all unassigned projects
%li
%li
%span
.
label
.label-info
specific
%span
.
badge
.label-info
specific
\- Runner runs jobs from assigned projects
\- Runner runs jobs from assigned projects
%li
%li
%span
.
label
.label-warning
locked
%span
.
badge
.label-warning
locked
\- Runner cannot be assigned to other projects
\- Runner cannot be assigned to other projects
%li
%li
%span
.
label
.label-danger
paused
%span
.
badge
.label-danger
paused
\- Runner will not receive any new jobs
\- Runner will not receive any new jobs
.bs-callout.clearfix
.bs-callout.clearfix
...
...
app/views/admin/users/_user.html.haml
View file @
21785171
...
@@ -5,11 +5,11 @@
...
@@ -5,11 +5,11 @@
.user-name.row-title.str-truncated-100
.user-name.row-title.str-truncated-100
=
link_to
user
.
name
,
[
:admin
,
user
]
=
link_to
user
.
name
,
[
:admin
,
user
]
-
if
user
.
blocked?
-
if
user
.
blocked?
%span
.
label
.label-danger
blocked
%span
.
badge
.label-danger
blocked
-
if
user
.
admin?
-
if
user
.
admin?
%span
.
label
.label-success
Admin
%span
.
badge
.label-success
Admin
-
if
user
.
external?
-
if
user
.
external?
%span
.
label
.label-default
External
%span
.
badge
.label-default
External
-
if
user
==
current_user
-
if
user
==
current_user
%span
It's you!
%span
It's you!
.row-second-line.str-truncated-100
.row-second-line.str-truncated-100
...
...
app/views/groups/projects.html.haml
View file @
21785171
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
%strong
=
link_to
project
.
full_name
,
project
%strong
=
link_to
project
.
full_name
,
project
.float-right
.float-right
-
if
project
.
archived
-
if
project
.
archived
%span
.
label
.label-warning
archived
%span
.
badge
.label-warning
archived
%span
.badge.badge-pill
%span
.badge.badge-pill
=
storage_counter
(
project
.
statistics
.
storage_size
)
=
storage_counter
(
project
.
statistics
.
storage_size
)
=
link_to
'Members'
,
project_project_members_path
(
project
),
id:
"edit_
#{
dom_id
(
project
)
}
"
,
class:
"btn btn-sm"
=
link_to
'Members'
,
project_project_members_path
(
project
),
id:
"edit_
#{
dom_id
(
project
)
}
"
,
class:
"btn btn-sm"
...
...
app/views/profiles/emails/index.html.haml
View file @
21785171
...
@@ -33,19 +33,19 @@
...
@@ -33,19 +33,19 @@
%li
%li
=
render
partial:
'shared/email_with_badge'
,
locals:
{
email:
@primary_email
,
verified:
current_user
.
confirmed?
}
=
render
partial:
'shared/email_with_badge'
,
locals:
{
email:
@primary_email
,
verified:
current_user
.
confirmed?
}
%span
.float-right
%span
.float-right
%span
.
label
.label-success
Primary email
%span
.
badge
.label-success
Primary email
-
if
@primary_email
===
current_user
.
public_email
-
if
@primary_email
===
current_user
.
public_email
%span
.
label
.label-info
Public email
%span
.
badge
.label-info
Public email
-
if
@primary_email
===
current_user
.
notification_email
-
if
@primary_email
===
current_user
.
notification_email
%span
.
label
.label-info
Notification email
%span
.
badge
.label-info
Notification email
-
@emails
.
each
do
|
email
|
-
@emails
.
each
do
|
email
|
%li
%li
=
render
partial:
'shared/email_with_badge'
,
locals:
{
email:
email
.
email
,
verified:
email
.
confirmed?
}
=
render
partial:
'shared/email_with_badge'
,
locals:
{
email:
email
.
email
,
verified:
email
.
confirmed?
}
%span
.float-right
%span
.float-right
-
if
email
.
email
===
current_user
.
public_email
-
if
email
.
email
===
current_user
.
public_email
%span
.
label
.label-info
Public email
%span
.
badge
.label-info
Public email
-
if
email
.
email
===
current_user
.
notification_email
-
if
email
.
email
===
current_user
.
notification_email
%span
.
label
.label-info
Notification email
%span
.
badge
.label-info
Notification email
-
unless
email
.
confirmed?
-
unless
email
.
confirmed?
-
confirm_title
=
"
#{
email
.
confirmation_sent_at
?
'Resend'
:
'Send'
}
confirmation email"
-
confirm_title
=
"
#{
email
.
confirmation_sent_at
?
'Resend'
:
'Send'
}
confirmation email"
=
link_to
confirm_title
,
resend_confirmation_instructions_profile_email_path
(
email
),
method: :put
,
class:
'btn btn-sm btn-warning prepend-left-10'
=
link_to
confirm_title
,
resend_confirmation_instructions_profile_email_path
(
email
),
method: :put
,
class:
'btn btn-sm btn-warning prepend-left-10'
...
...
app/views/projects/blob/_header_content.html.haml
View file @
21785171
...
@@ -10,4 +10,4 @@
...
@@ -10,4 +10,4 @@
=
number_to_human_size
(
blob
.
raw_size
)
=
number_to_human_size
(
blob
.
raw_size
)
-
if
blob
.
stored_externally?
&&
blob
.
external_storage
==
:lfs
-
if
blob
.
stored_externally?
&&
blob
.
external_storage
==
:lfs
%span
.
label
.label-lfs.append-right-5
LFS
%span
.
badge
.label-lfs.append-right-5
LFS
app/views/projects/branches/_branch.html.haml
View file @
21785171
...
@@ -13,13 +13,13 @@
...
@@ -13,13 +13,13 @@
=
branch
.
name
=
branch
.
name
-
if
branch
.
name
==
@repository
.
root_ref
-
if
branch
.
name
==
@repository
.
root_ref
%span
.
label
.label-primary
default
%span
.
badge
.label-primary
default
-
elsif
merged
-
elsif
merged
%span
.
label
.label-info.has-tooltip
{
title:
s_
(
'
Branches
|
Merged
into
%
{
default_branch
}
'
)
%
{
default_branch:
@repository
.
root_ref
}
}
%span
.
badge
.label-info.has-tooltip
{
title:
s_
(
'
Branches
|
Merged
into
%
{
default_branch
}
'
)
%
{
default_branch:
@repository
.
root_ref
}
}
=
s_
(
'Branches|merged'
)
=
s_
(
'Branches|merged'
)
-
if
protected_branch?
(
@project
,
branch
)
-
if
protected_branch?
(
@project
,
branch
)
%span
.
label
.label-success
%span
.
badge
.label-success
=
s_
(
'Branches|protected'
)
=
s_
(
'Branches|protected'
)
.block-truncated
.block-truncated
...
...
app/views/projects/ci/builds/_build.html.haml
View file @
21785171
...
@@ -41,14 +41,14 @@
...
@@ -41,14 +41,14 @@
.label-container
.label-container
-
if
job
.
tags
.
any?
-
if
job
.
tags
.
any?
-
job
.
tags
.
each
do
|
tag
|
-
job
.
tags
.
each
do
|
tag
|
%span
.
label
.label-primary
%span
.
badge
.label-primary
=
tag
=
tag
-
if
job
.
try
(
:trigger_request
)
-
if
job
.
try
(
:trigger_request
)
%span
.
label
.label-info
triggered
%span
.
badge
.label-info
triggered
-
if
job
.
try
(
:allow_failure
)
-
if
job
.
try
(
:allow_failure
)
%span
.
label
.label-danger
allowed to fail
%span
.
badge
.label-danger
allowed to fail
-
if
job
.
action?
-
if
job
.
action?
%span
.
label
.label-info
manual
%span
.
badge
.label-info
manual
-
if
pipeline_link
-
if
pipeline_link
%td
%td
...
...
app/views/projects/commits/_commit.html.haml
View file @
21785171
...
@@ -58,7 +58,7 @@
...
@@ -58,7 +58,7 @@
.js-commit-pipeline-status
{
data:
{
endpoint:
pipelines_project_commit_path
(
project
,
commit
.
id
,
ref:
ref
)
}
}
.js-commit-pipeline-status
{
data:
{
endpoint:
pipelines_project_commit_path
(
project
,
commit
.
id
,
ref:
ref
)
}
}
.commit-sha-group
.commit-sha-group
.
label
.label-monospace
.
badge
.label-monospace
=
commit
.
short_id
=
commit
.
short_id
=
clipboard_button
(
text:
commit
.
id
,
title:
_
(
"Copy commit SHA to clipboard"
),
class:
"btn btn-secondary"
,
container:
"body"
)
=
clipboard_button
(
text:
commit
.
id
,
title:
_
(
"Copy commit SHA to clipboard"
),
class:
"btn btn-secondary"
,
container:
"body"
)
=
link_to_browse_code
(
project
,
commit
)
=
link_to_browse_code
(
project
,
commit
)
app/views/projects/diffs/_file_header.html.haml
View file @
21785171
...
@@ -37,4 +37,4 @@
...
@@ -37,4 +37,4 @@
#{
diff_file
.
a_mode
}
→
#{
diff_file
.
b_mode
}
#{
diff_file
.
a_mode
}
→
#{
diff_file
.
b_mode
}
-
if
diff_file
.
stored_externally?
&&
diff_file
.
external_storage
==
:lfs
-
if
diff_file
.
stored_externally?
&&
diff_file
.
external_storage
==
:lfs
%span
.
label
.label-lfs.append-right-5
LFS
%span
.
badge
.label-lfs.append-right-5
LFS
app/views/projects/generic_commit_statuses/_generic_commit_status.html.haml
View file @
21785171
...
@@ -35,10 +35,10 @@
...
@@ -35,10 +35,10 @@
.label-container
.label-container
-
if
generic_commit_status
.
tags
.
any?
-
if
generic_commit_status
.
tags
.
any?
-
generic_commit_status
.
tags
.
each
do
|
tag
|
-
generic_commit_status
.
tags
.
each
do
|
tag
|
%span
.
label
.label-primary
%span
.
badge
.label-primary
=
tag
=
tag
-
if
retried
-
if
retried
%span
.
label
.label-warning
retried
%span
.
badge
.label-warning
retried
-
if
pipeline_link
-
if
pipeline_link
%td
%td
...
...
app/views/projects/hook_logs/_index.html.haml
View file @
21785171
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
%td
%td
=
render
partial:
'shared/hook_logs/status_label'
,
locals:
{
hook_log:
hook_log
}
=
render
partial:
'shared/hook_logs/status_label'
,
locals:
{
hook_log:
hook_log
}
%td
.d-none.d-sm-block
%td
.d-none.d-sm-block
%span
.
label
.label-gray.deploy-project-label
%span
.
badge
.label-gray.deploy-project-label
=
hook_log
.
trigger
.
singularize
.
titleize
=
hook_log
.
trigger
.
singularize
.
titleize
%td
%td
=
truncate
(
hook_log
.
url
,
length:
50
)
=
truncate
(
hook_log
.
url
,
length:
50
)
...
...
app/views/projects/jobs/show.html.haml
View file @
21785171
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
-
elsif
@build
.
tags
.
any?
-
elsif
@build
.
tags
.
any?
This job is stuck, because you don't have any active runners online with any of these tags assigned to them:
This job is stuck, because you don't have any active runners online with any of these tags assigned to them:
-
@build
.
tags
.
each
do
|
tag
|
-
@build
.
tags
.
each
do
|
tag
|
%span
.
label
.label-primary
%span
.
badge
.label-primary
=
tag
=
tag
-
else
-
else
This job is stuck, because you don't have any active runners that can run this job.
This job is stuck, because you don't have any active runners that can run this job.
...
...
app/views/projects/merge_requests/invalid.html.haml
View file @
21785171
...
@@ -10,13 +10,13 @@
...
@@ -10,13 +10,13 @@
-
if
@merge_request
.
for_fork?
&&
!
@merge_request
.
source_project
-
if
@merge_request
.
for_fork?
&&
!
@merge_request
.
source_project
fork project was removed
fork project was removed
-
elsif
!
@merge_request
.
source_branch_exists?
-
elsif
!
@merge_request
.
source_branch_exists?
%span
.
label
.label-inverse
=
@merge_request
.
source_branch
%span
.
badge
.label-inverse
=
@merge_request
.
source_branch
does not exist in
does not exist in
%span
.
label
.label-info
=
@merge_request
.
source_project_path
%span
.
badge
.label-info
=
@merge_request
.
source_project_path
-
elsif
!
@merge_request
.
target_branch_exists?
-
elsif
!
@merge_request
.
target_branch_exists?
%span
.
label
.label-inverse
=
@merge_request
.
target_branch
%span
.
badge
.label-inverse
=
@merge_request
.
target_branch
does not exist in
does not exist in
%span
.
label
.label-info
=
@merge_request
.
target_project_path
%span
.
badge
.label-info
=
@merge_request
.
target_project_path
-
else
-
else
of internal error
of internal error
...
...
app/views/projects/pages/_list.html.haml
View file @
21785171
...
@@ -17,9 +17,9 @@
...
@@ -17,9 +17,9 @@
=
icon
(
'external-link'
)
=
icon
(
'external-link'
)
-
if
domain
.
subject
-
if
domain
.
subject
%p
%p
%span
.
label
.label-gray
Certificate:
#{
domain
.
subject
}
%span
.
badge
.label-gray
Certificate:
#{
domain
.
subject
}
-
if
domain
.
expired?
-
if
domain
.
expired?
%span
.
label
.label-danger
Expired
%span
.
badge
.label-danger
Expired
%div
%div
=
link_to
'Details'
,
project_pages_domain_path
(
@project
,
domain
),
class:
"btn btn-sm btn-grouped"
=
link_to
'Details'
,
project_pages_domain_path
(
@project
,
domain
),
class:
"btn btn-sm btn-grouped"
=
link_to
'Remove'
,
project_pages_domain_path
(
@project
,
domain
),
data:
{
confirm:
'Are you sure?'
},
method: :delete
,
class:
"btn btn-remove btn-sm btn-grouped"
=
link_to
'Remove'
,
project_pages_domain_path
(
@project
,
domain
),
data:
{
confirm:
'Are you sure?'
},
method: :delete
,
class:
"btn btn-remove btn-sm btn-grouped"
...
...
app/views/projects/protected_branches/shared/_matching_branch.html.haml
View file @
21785171
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
=
link_to
matching_branch
.
name
,
project_ref_path
(
@project
,
matching_branch
.
name
),
class:
'ref-name'
=
link_to
matching_branch
.
name
,
project_ref_path
(
@project
,
matching_branch
.
name
),
class:
'ref-name'
-
if
@project
.
root_ref?
(
matching_branch
.
name
)
-
if
@project
.
root_ref?
(
matching_branch
.
name
)
%span
.
label
.label-info.prepend-left-5
default
%span
.
badge
.label-info.prepend-left-5
default
%td
%td
-
commit
=
@project
.
commit
(
matching_branch
.
name
)
-
commit
=
@project
.
commit
(
matching_branch
.
name
)
=
link_to
(
commit
.
short_id
,
project_commit_path
(
@project
,
commit
.
id
),
class:
'commit-sha'
)
=
link_to
(
commit
.
short_id
,
project_commit_path
(
@project
,
commit
.
id
),
class:
'commit-sha'
)
...
...
app/views/projects/protected_branches/shared/_protected_branch.html.haml
View file @
21785171
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
%span
.ref-name
=
protected_branch
.
name
%span
.ref-name
=
protected_branch
.
name
-
if
@project
.
root_ref?
(
protected_branch
.
name
)
-
if
@project
.
root_ref?
(
protected_branch
.
name
)
%span
.
label
.label-info.prepend-left-5
default
%span
.
badge
.label-info.prepend-left-5
default
%td
%td
-
if
protected_branch
.
wildcard?
-
if
protected_branch
.
wildcard?
-
matching_branches
=
protected_branch
.
matching
(
repository
.
branches
)
-
matching_branches
=
protected_branch
.
matching
(
repository
.
branches
)
...
...
app/views/projects/protected_tags/shared/_matching_tag.html.haml
View file @
21785171
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
=
link_to
matching_tag
.
name
,
project_ref_path
(
@project
,
matching_tag
.
name
),
class:
'ref-name'
=
link_to
matching_tag
.
name
,
project_ref_path
(
@project
,
matching_tag
.
name
),
class:
'ref-name'
-
if
@project
.
root_ref?
(
matching_tag
.
name
)
-
if
@project
.
root_ref?
(
matching_tag
.
name
)
%span
.
label
.label-info.prepend-left-5
default
%span
.
badge
.label-info.prepend-left-5
default
%td
%td
-
commit
=
@project
.
commit
(
matching_tag
.
name
)
-
commit
=
@project
.
commit
(
matching_tag
.
name
)
=
link_to
(
commit
.
short_id
,
project_commit_path
(
@project
,
commit
.
id
),
class:
'commit-sha'
)
=
link_to
(
commit
.
short_id
,
project_commit_path
(
@project
,
commit
.
id
),
class:
'commit-sha'
)
...
...
app/views/projects/protected_tags/shared/_protected_tag.html.haml
View file @
21785171
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
%span
.ref-name
=
protected_tag
.
name
%span
.ref-name
=
protected_tag
.
name
-
if
@project
.
root_ref?
(
protected_tag
.
name
)
-
if
@project
.
root_ref?
(
protected_tag
.
name
)
%span
.
label
.label-info.prepend-left-5
default
%span
.
badge
.label-info.prepend-left-5
default
%td
%td
-
if
protected_tag
.
wildcard?
-
if
protected_tag
.
wildcard?
-
matching_tags
=
protected_tag
.
matching
(
repository
.
tags
)
-
matching_tags
=
protected_tag
.
matching
(
repository
.
tags
)
...
...
app/views/projects/runners/_index.html.haml
View file @
21785171
...
@@ -9,10 +9,10 @@
...
@@ -9,10 +9,10 @@
%div
%div
%ul
%ul
%li
%li
%span
.
label
.label-success
active
%span
.
badge
.label-success
active
\- Runner is active and can process any new jobs
\- Runner is active and can process any new jobs
%li
%li
%span
.
label
.label-danger
paused
%span
.
badge
.label-danger
paused
\- Runner is paused and will not receive any new jobs
\- Runner is paused and will not receive any new jobs
%hr
%hr
...
...
app/views/projects/runners/_runner.html.haml
View file @
21785171
...
@@ -39,5 +39,5 @@
...
@@ -39,5 +39,5 @@
-
if
runner
.
tag_list
.
present?
-
if
runner
.
tag_list
.
present?
%p
%p
-
runner
.
tag_list
.
sort
.
each
do
|
tag
|
-
runner
.
tag_list
.
sort
.
each
do
|
tag
|
%span
.
label
.label-primary
%span
.
badge
.label-primary
=
tag
=
tag
app/views/projects/runners/show.html.haml
View file @
21785171
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
%td
Tags
%td
Tags
%td
%td
-
@runner
.
tag_list
.
sort
.
each
do
|
tag
|
-
@runner
.
tag_list
.
sort
.
each
do
|
tag
|
%span
.
label
.label-primary
%span
.
badge
.label-primary
=
tag
=
tag
%tr
%tr
%td
Name
%td
Name
...
...
app/views/projects/settings/integrations/_project_hook.html.haml
View file @
21785171
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
%div
%div
-
ProjectHook
.
triggers
.
each_value
do
|
event
|
-
ProjectHook
.
triggers
.
each_value
do
|
event
|
-
if
hook
.
public_send
(
event
)
-
if
hook
.
public_send
(
event
)
%span
.
label
.label-gray.deploy-project-label
=
event
.
to_s
.
titleize
%span
.
badge
.label-gray.deploy-project-label
=
event
.
to_s
.
titleize
.col-md-4.col-lg-5.text-right-lg.prepend-top-5
.col-md-4.col-lg-5.text-right-lg.prepend-top-5
%span
.append-right-10.inline
%span
.append-right-10.inline
SSL Verification:
#{
hook
.
enable_ssl_verification
?
'enabled'
:
'disabled'
}
SSL Verification:
#{
hook
.
enable_ssl_verification
?
'enabled'
:
'disabled'
}
...
...
app/views/projects/tags/_tag.html.haml
View file @
21785171
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
=
link_to
tag
.
name
,
project_tag_path
(
@project
,
tag
.
name
),
class:
'item-title ref-name prepend-left-4'
=
link_to
tag
.
name
,
project_tag_path
(
@project
,
tag
.
name
),
class:
'item-title ref-name prepend-left-4'
-
if
protected_tag?
(
@project
,
tag
)
-
if
protected_tag?
(
@project
,
tag
)
%span
.
label
.label-success.prepend-left-4
%span
.
badge
.label-success.prepend-left-4
=
s_
(
'TagsPage|protected'
)
=
s_
(
'TagsPage|protected'
)
-
if
tag
.
message
.
present?
-
if
tag
.
message
.
present?
...
...
app/views/projects/tags/show.html.haml
View file @
21785171
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
=
icon
(
'tag'
)
=
icon
(
'tag'
)
=
@tag
.
name
=
@tag
.
name
-
if
protected_tag?
(
@project
,
@tag
)
-
if
protected_tag?
(
@project
,
@tag
)
%span
.
label
.label-success
%span
.
badge
.label-success
=
s_
(
'TagsPage|protected'
)
=
s_
(
'TagsPage|protected'
)
-
if
@commit
-
if
@commit
=
render
'projects/branches/commit'
,
commit:
@commit
,
project:
@project
=
render
'projects/branches/commit'
,
commit:
@commit
,
project:
@project
...
...
app/views/projects/tree/_blob_item.html.haml
View file @
21785171
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
=
link_to
project_blob_path
(
@project
,
tree_join
(
@id
||
@commit
.
id
,
blob_item
.
name
)),
class:
'str-truncated'
,
title:
file_name
do
=
link_to
project_blob_path
(
@project
,
tree_join
(
@id
||
@commit
.
id
,
blob_item
.
name
)),
class:
'str-truncated'
,
title:
file_name
do
%span
=
file_name
%span
=
file_name
-
if
is_lfs_blob
-
if
is_lfs_blob
%span
.
label
.label-lfs.prepend-left-5
LFS
%span
.
badge
.label-lfs.prepend-left-5
LFS
%td
.d-none.d-sm-table-cell.tree-commit
%td
.d-none.d-sm-table-cell.tree-commit
%td
.tree-time-ago.cgray.text-right
%td
.tree-time-ago.cgray.text-right
=
render
'projects/tree/spinner'
=
render
'projects/tree/spinner'
app/views/projects/triggers/_content.html.haml
View file @
21785171
%p
.append-bottom-default
%p
.append-bottom-default
Triggers with the
Triggers with the
%span
.
label
.label-primary
legacy
%span
.
badge
.label-primary
legacy
label do not have an associated user and only have access to the current project.
label do not have an associated user and only have access to the current project.
%br
%br
=
succeed
'.'
do
=
succeed
'.'
do
...
...
app/views/projects/triggers/_trigger.html.haml
View file @
21785171
...
@@ -8,9 +8,9 @@
...
@@ -8,9 +8,9 @@
.label-container
.label-container
-
if
trigger
.
legacy?
-
if
trigger
.
legacy?
%span
.
label
.label-primary.has-tooltip
{
title:
"Trigger makes use of deprecated functionality"
}
legacy
%span
.
badge
.label-primary.has-tooltip
{
title:
"Trigger makes use of deprecated functionality"
}
legacy
-
if
!
trigger
.
can_access_project?
-
if
!
trigger
.
can_access_project?
%span
.
label
.label-danger.has-tooltip
{
title:
"Trigger user has insufficient permissions to project"
}
invalid
%span
.
badge
.label-danger.has-tooltip
{
title:
"Trigger user has insufficient permissions to project"
}
invalid
%td
%td
-
if
trigger
.
description?
&&
trigger
.
description
.
length
>
15
-
if
trigger
.
description?
&&
trigger
.
description
.
length
>
15
...
...
app/views/search/results/_issue.html.haml
View file @
21785171
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
=
link_to
[
issue
.
project
.
namespace
.
becomes
(
Namespace
),
issue
.
project
,
issue
]
do
=
link_to
[
issue
.
project
.
namespace
.
becomes
(
Namespace
),
issue
.
project
,
issue
]
do
%span
.term.str-truncated
=
issue
.
title
%span
.term.str-truncated
=
issue
.
title
-
if
issue
.
closed?
-
if
issue
.
closed?
%span
.
label
.label-danger.prepend-left-5
Closed
%span
.
badge
.label-danger.prepend-left-5
Closed
.float-right
##{issue.iid}
.float-right
##{issue.iid}
-
if
issue
.
description
.
present?
-
if
issue
.
description
.
present?
.description.term
.description.term
...
...
app/views/search/results/_merge_request.html.haml
View file @
21785171
...
@@ -3,9 +3,9 @@
...
@@ -3,9 +3,9 @@
=
link_to
[
merge_request
.
target_project
.
namespace
.
becomes
(
Namespace
),
merge_request
.
target_project
,
merge_request
]
do
=
link_to
[
merge_request
.
target_project
.
namespace
.
becomes
(
Namespace
),
merge_request
.
target_project
,
merge_request
]
do
%span
.term.str-truncated
=
merge_request
.
title
%span
.term.str-truncated
=
merge_request
.
title
-
if
merge_request
.
merged?
-
if
merge_request
.
merged?
%span
.
label
.label-primary.prepend-left-5
Merged
%span
.
badge
.label-primary.prepend-left-5
Merged
-
elsif
merge_request
.
closed?
-
elsif
merge_request
.
closed?
%span
.
label
.label-danger.prepend-left-5
Closed
%span
.
badge
.label-danger.prepend-left-5
Closed
.float-right
=
merge_request
.
to_reference
.float-right
=
merge_request
.
to_reference
-
if
merge_request
.
description
.
present?
-
if
merge_request
.
description
.
present?
.description.term
.description.term
...
...
app/views/search/results/_snippet_title.html.haml
View file @
21785171
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
=
link_to
reliable_snippet_path
(
snippet_title
)
do
=
link_to
reliable_snippet_path
(
snippet_title
)
do
=
truncate
(
snippet_title
.
title
,
length:
60
)
=
truncate
(
snippet_title
.
title
,
length:
60
)
-
if
snippet_title
.
private?
-
if
snippet_title
.
private?
%span
.
label
.label-gray
%span
.
badge
.label-gray
%i
.fa.fa-lock
%i
.fa.fa-lock
private
private
%span
.cgray.monospace.tiny.float-right.term
%span
.cgray.monospace.tiny.float-right.term
...
...
app/views/shared/boards/components/sidebar/_labels.html.haml
View file @
21785171
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
None
None
%a
{
href:
"#"
,
%a
{
href:
"#"
,
"v-for"
=>
"label in issue.labels"
}
"v-for"
=>
"label in issue.labels"
}
%span
.
label
.color-label.has-tooltip
{
":style"
=>
"{ backgroundColor: label.color, color: label.textColor }"
}
%span
.
badge
.color-label.has-tooltip
{
":style"
=>
"{ backgroundColor: label.color, color: label.textColor }"
}
{{ label.title }}
{{ label.title }}
-
if
can_admin_issue?
-
if
can_admin_issue?
.selectbox
.selectbox
...
...
app/views/shared/hook_logs/_content.html.haml
View file @
21785171
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
%p
%p
%strong
Trigger:
%strong
Trigger:
%td
.d-none.d-sm-block
%td
.d-none.d-sm-block
%span
.
label
.label-gray.deploy-project-label
%span
.
badge
.label-gray.deploy-project-label
=
hook_log
.
trigger
.
singularize
.
titleize
=
hook_log
.
trigger
.
singularize
.
titleize
%p
%p
%strong
Elapsed time:
%strong
Elapsed time:
...
...
app/views/shared/members/_member.html.haml
View file @
21785171
...
@@ -14,10 +14,10 @@
...
@@ -14,10 +14,10 @@
%span
.cgray
=
user
.
to_reference
%span
.cgray
=
user
.
to_reference
-
if
user
==
current_user
-
if
user
==
current_user
%span
.
label
.label-success.prepend-left-5
It's you
%span
.
badge
.label-success.prepend-left-5
It's you
-
if
user
.
blocked?
-
if
user
.
blocked?
%label
.
label
.label-danger
%label
.
badge
.label-danger
%strong
Blocked
%strong
Blocked
-
if
source
.
instance_of?
(
Group
)
&&
source
!=
@group
-
if
source
.
instance_of?
(
Group
)
&&
source
!=
@group
...
...
app/views/shared/milestones/_milestone.html.haml
View file @
21785171
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
.projects
.projects
-
milestone
.
milestones
.
each
do
|
milestone
|
-
milestone
.
milestones
.
each
do
|
milestone
|
=
link_to
milestone_path
(
milestone
)
do
=
link_to
milestone_path
(
milestone
)
do
%span
.
label
.label-gray
%span
.
badge
.label-gray
=
dashboard
?
milestone
.
project
.
full_name
:
milestone
.
project
.
name
=
dashboard
?
milestone
.
project
.
full_name
:
milestone
.
project
.
name
-
if
@group
-
if
@group
.col-sm-6.milestone-actions
.col-sm-6.milestone-actions
...
...
app/views/shared/projects/_project.html.haml
View file @
21785171
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
.controls
.controls
.prepend-top-0
.prepend-top-0
-
if
project
.
archived
-
if
project
.
archived
%span
.prepend-left-10.
label
.label-warning
archived
%span
.prepend-left-10.
badge
.label-warning
archived
-
if
can?
(
current_user
,
:read_cross_project
)
&&
project
.
pipeline_status
.
has_status?
-
if
can?
(
current_user
,
:read_cross_project
)
&&
project
.
pipeline_status
.
has_status?
%span
.prepend-left-10
%span
.prepend-left-10
=
render_project_pipeline_status
(
project
.
pipeline_status
)
=
render_project_pipeline_status
(
project
.
pipeline_status
)
...
...
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