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
9be7aa0f
Commit
9be7aa0f
authored
Nov 09, 2016
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removes unused partials
parent
05e57a07
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
0 additions
and
160 deletions
+0
-160
app/views/projects/environments/_environment.html.haml
app/views/projects/environments/_environment.html.haml
+0
-35
app/views/projects/environments/components/_actions.html.haml
...views/projects/environments/components/_actions.html.haml
+0
-16
app/views/projects/environments/components/_commit.html.haml
app/views/projects/environments/components/_commit.html.haml
+0
-27
app/views/projects/environments/components/_environment.html.haml
...s/projects/environments/components/_environment.html.haml
+0
-60
app/views/projects/environments/components/_external_url.html.haml
.../projects/environments/components/_external_url.html.haml
+0
-5
app/views/projects/environments/components/_rollback.html.haml
...iews/projects/environments/components/_rollback.html.haml
+0
-10
app/views/projects/environments/components/_stop.html.haml
app/views/projects/environments/components/_stop.html.haml
+0
-7
No files found.
app/views/projects/environments/_environment.html.haml
deleted
100644 → 0
View file @
05e57a07
-
last_deployment
=
environment
.
last_deployment
%tr
.environment
%td
=
link_to
environment
.
name
,
namespace_project_environment_path
(
@project
.
namespace
,
@project
,
environment
)
%td
.deployment-column
-
if
last_deployment
%span
##{last_deployment.iid}
-
if
last_deployment
.
user
by
=
user_avatar
(
user:
last_deployment
.
user
,
size:
20
)
%td
-
if
last_deployment
&&
last_deployment
.
deployable
=
link_to
[
@project
.
namespace
.
becomes
(
Namespace
),
@project
,
last_deployment
.
deployable
],
class:
'build-link'
do
=
"
#{
last_deployment
.
deployable
.
name
}
(#
#{
last_deployment
.
deployable
.
id
}
)"
%td
-
if
last_deployment
=
render
'projects/deployments/commit'
,
deployment:
last_deployment
-
else
%p
.commit-title
No deployments yet
%td
-
if
last_deployment
#{
time_ago_with_tooltip
(
last_deployment
.
created_at
)
}
%td
.hidden-xs
.pull-right
=
render
'projects/environments/external_url'
,
environment:
environment
=
render
'projects/deployments/actions'
,
deployment:
last_deployment
=
render
'projects/environments/stop'
,
environment:
environment
=
render
'projects/deployments/rollback'
,
deployment:
last_deployment
app/views/projects/environments/components/_actions.html.haml
deleted
100644 → 0
View file @
05e57a07
-
if
can?
(
current_user
,
:create_deployment
,
@project
)
.inline
{
"v-if"
=>
"hasManualActions"
}
.dropdown
%a
.dropdown-new.btn.btn-default
{
type:
"button"
,
"data-toggle"
=>
"dropdown"
}
=
custom_icon
(
'icon_play'
)
=
icon
(
'caret-down'
)
%ul
.dropdown-menu.dropdown-menu-align-right
%li
{
"v-for"
=>
"action in manualActions"
}
%a
{
":href"
=>
"action.play_url"
,
"data-method"
=>
"post"
,
"rel"
=>
"nofollow"
}
=
custom_icon
(
'icon_play'
)
%span
{{action.name}}
\ No newline at end of file
app/views/projects/environments/components/_commit.html.haml
deleted
100644 → 0
View file @
05e57a07
.branch-commit
{
"v-if"
=>
"!isFolder && model.last_deployment"
}
.icon-container
{
"v-if"
=>
"model.last_deployment.ref && model.last_deployment.tag"
}
=
icon
(
"tag"
)
.icon-container
{
"v-if"
=>
"model.last_deployment.ref && !model.last_deployment.tag"
}
=
icon
(
"code-fork"
)
%a
.monospace.branch-name
{
"v-if"
=>
"model.last_deployment.ref"
,
":href"
=>
"model.last_deployment.ref.ref_url"
}
{{model.last_deployment.ref.name}}
.icon-container.commit-icon
=
custom_icon
(
"icon_commit"
)
%a
.commit-id.monospace
{
":href"
=>
"model.last_deployment.commit.commit_url"
}
{{model.last_deployment.commit.short_id}}
%p
.commit-title
%span
{
"v-if"
=>
"model.last_deployment.commit && model.last_deployment.commit.title"
}
%a
.avatar-image-container
{
"v-if"
=>
"model.last_deployment.commit.author"
,
":href"
=>
"model.last_deployment.commit.author.web_url"
}
%img
.avatar.has-tooltip.s20
{
":title"
=>
"model.last_deployment.commit.author.username"
,
":alt"
=>
"model.last_deployment.commit.author.username + `'s avatar`"
,
":src"
=>
"model.last_deployment.commit.author.avatar_url"
}
%a
.commit-row-message
{
":href"
=>
"model.last_deployment.commit.commit_url"
}
{{model.last_deployment.commit.title}}
%span
{
"v-if"
=>
"!model.last_deployment.commit.title"
}
Cant find HEAD commit for this branch
app/views/projects/environments/components/_environment.html.haml
deleted
100644 → 0
View file @
05e57a07
%script
#environment-item-template
{
"type"
=>
"text/x-template"
}
%tr
%td
{
"v-bind:class"
=>
"{ 'children-row': isChildren}"
}
%a
.environment-name
{
"v-if"
=>
"!isFolder"
,
":href"
=>
"model.environment_url"
}
{{model.name}}
%span
.folder-name
{
"v-if"
=>
"isFolder"
,
"@click"
=>
"toggle"
}
%i
.folder-icon
{
"v-show"
=>
"open"
}
=
icon
(
"caret-down"
)
%i
.folder-icon
{
"v-show"
=>
"!open"
}
=
icon
(
"caret-right"
)
{{model.name}}
%span
.badge
{{childrenCounter}}
%td
.deployment-column
%span
{
"v-if"
=>
"!isFolder && model.last_deployment && model.last_deployment.iid"
}
=
precede
"#"
do
{{model.last_deployment.iid}}
%span
{
"v-if"
=>
"model.last_deployment.user"
}
by
%a
{
":href"
=>
"model.last_deployment.user.web_url"
}
%img
.avatar.has-tooltip.s20
{
":src"
=>
"model.last_deployment.user.avatar_url"
,
":alt"
=>
"model.last_deployment.user.username + `'s avatar`"
,
":title"
=>
"model.last_deployment.user.username"
}
%td
%a
.build-link
{
"v-if"
=>
"!isFolder && model.last_deployment && model.last_deployment.deployable"
,
":href"
=>
"model.last_deployment.deployable.build"
}
{{model.last_deployment.deployable.name}}
=
precede
"#"
do
{{model.last_deployment.deployable.id}}
%td
=
render
"projects/environments/components/commit"
%p
.commit-title
{
"v-if"
=>
"!isFolder && !model.last_deployment"
}
No deployments yet
%td
%span
.environment-created-date-timeago
{
"v-if"
=>
"!isFolder && model.last_deployment"
}
{{createdDate}}
%td
.hidden-xs
.pull-right
{
"v-if"
=>
"!isFolder"
}
=
render
"projects/environments/components/external_url"
=
render
"projects/environments/components/actions"
=
render
"projects/environments/components/stop"
=
render
"projects/environments/components/rollback"
%tr
{
"v-if"
=>
"open && isFolder"
,
"is"
=>
"environment-item"
,
"v-for"
=>
"model in model.children"
,
":model"
=>
"model"
}
app/views/projects/environments/components/_external_url.html.haml
deleted
100644 → 0
View file @
05e57a07
-
if
can?
(
current_user
,
:read_environment
,
@project
)
%a
.btn.external-url
{
"v-if"
=>
"!isFolder && model.external_url"
,
":target"
=>
"_blank"
,
":href"
=>
"model.external_url"
}
=
icon
(
"external-link"
)
app/views/projects/environments/components/_rollback.html.haml
deleted
100644 → 0
View file @
05e57a07
-
if
can?
(
current_user
,
:create_deployment
,
@project
)
%a
.btn.btn-build
{
"v-if"
=>
"canRetry"
,
":href"
=>
"model.last_deployment.deployable.retry_url"
,
"data-method"
=>
"post"
,
"rel"
=>
"nofollow"
}
%span
{
"v-if"
=>
"isLastDeployment"
}
Re-deploy
%span
{
"v-if"
=>
"!isLastDeployment"
}
Rollback
app/views/projects/environments/components/_stop.html.haml
deleted
100644 → 0
View file @
05e57a07
-
if
can?
(
current_user
,
:create_deployment
,
@project
)
.inline
{
"v-if"
=>
"isStoppable"
}
%a
.btn.stop-env-link
{
":href"
=>
"model.environment_url"
,
"method"
=>
":post"
,
"rel"
=>
"nofollow"
,
"confirm"
=>
"Are you sure you want to stop this environment?"
}
=
icon
(
"stop"
,
class:
"stop-env-icon"
)
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