BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
6f609771
Unverified
Commit
6f609771
authored
Oct 07, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move status badge helper to CI project settings for now
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
0611a189
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
16 deletions
+16
-16
show.html.haml
app/views/ci/projects/show.html.haml
+0
-16
_form.html.haml
app/views/projects/ci_settings/_form.html.haml
+16
-0
No files found.
app/views/ci/projects/show.html.haml
View file @
6f609771
...
...
@@ -19,22 +19,6 @@
%li
.pull-right
=
link_to
'Go to project'
,
project_path
(
gl_project
),
class:
'btn btn-sm'
-
if
@ref
%p
Paste build status image for
#{
@ref
}
with next link
=
link_to
'#'
,
class:
'badge-codes-toggle btn btn-default btn-xs'
do
Status Badge
.badge-codes-block.bs-callout.bs-callout-info.hide
%p
Status badge for
%span
.label.label-info
#{
@ref
}
branch
%div
%label
Markdown:
=
text_field_tag
'badge_md'
,
markdown_badge_code
(
@project
,
@ref
),
readonly:
true
,
class:
'form-control'
%label
Html:
=
text_field_tag
'badge_html'
,
html_badge_code
(
@project
,
@ref
),
readonly:
true
,
class:
'form-control'
...
...
app/views/projects/ci_settings/_form.html.haml
View file @
6f609771
...
...
@@ -8,6 +8,22 @@
Edit your
#{
link_to
".gitlab-ci.yml using web-editor"
,
yaml_web_editor_link
(
@ci_project
)
}
-
if
@repository
%p
Paste build status image for
#{
@repository
.
root_ref
}
with next link
=
link_to
'#'
,
class:
'badge-codes-toggle btn btn-default btn-xs'
do
Status Badge
.badge-codes-block.bs-callout.bs-callout-info.hide
%p
Status badge for
%span
.label.label-info
#{
@ref
}
branch
%div
%label
Markdown:
=
text_field_tag
'badge_md'
,
markdown_badge_code
(
@ci_project
,
@repository
.
root_ref
),
readonly:
true
,
class:
'form-control'
%label
Html:
=
text_field_tag
'badge_html'
,
html_badge_code
(
@ci_project
,
@repository
.
root_ref
),
readonly:
true
,
class:
'form-control'
=
nested_form_for
@ci_project
,
url:
namespace_project_ci_settings_path
(
@project
.
namespace
,
@project
),
html:
{
class:
'form-horizontal'
}
do
|
f
|
-
if
@ci_project
.
errors
.
any?
#error_explanation
...
...
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