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
29b59456
Commit
29b59456
authored
Feb 22, 2017
by
Annabel Dunstone Gray
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '24651-environments-list-buttons' into 'master'
Improves the environments list action buttons Closes #24651 See merge request !9424
parents
f2e15882
601b5adf
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
39 deletions
+42
-39
environment_actions.js.es6
...cripts/environments/components/environment_actions.js.es6
+19
-19
environment_item.js.es6
...vascripts/environments/components/environment_item.js.es6
+6
-19
environments.scss
app/assets/stylesheets/pages/environments.scss
+17
-1
No files found.
app/assets/javascripts/environments/components/environment_actions.js.es6
View file @
29b59456
...
...
@@ -15,29 +15,29 @@ module.exports = Vue.component('actions-component', {
},
template: `
<div class="
inline
">
<
div class
="dropdown">
<
a class="dropdown-new btn btn-default" data-toggle="dropdown"
>
<div class="
btn-group" role="group
">
<
button class="dropdown btn btn-default dropdown-new" data-toggle
="dropdown">
<
span
>
<span class="js-dropdown-play-icon-container" v-html="playIconSvg"></span>
<i class="fa fa-caret-down"></i>
</
a
>
</
span
>
<ul class="dropdown-menu dropdown-menu-align-right">
<li v-for="action in actions">
<a :href="action.play_path"
data-method="post"
rel="nofollow"
class="js-manual-action-link">
<ul class="dropdown-menu dropdown-menu-align-right">
<li v-for="action in actions">
<a :href="action.play_path"
data-method="post"
rel="nofollow"
class="js-manual-action-link">
<span class="js-action-play-icon-container" v-html="playIconSvg"></span>
<span class="js-action-play-icon-container" v-html="playIconSvg"></span>
<span>
{{action.name}}
</span>
</a>
</li>
</ul>
</div
>
</div>
<span>
{{action.name}}
</span>
</a>
</li>
</ul>
</button
>
</div>
`,
});
app/assets/javascripts/environments/components/environment_item.js.es6
View file @
29b59456
...
...
@@ -505,39 +505,26 @@ module.exports = Vue.component('environment-item', {
<td class="hidden-xs">
<div v-if="!model.isFolder">
<div v-if="hasManualActions && canCreateDeployment"
class="inline js-manual-actions-container">
<actions-component
<div class="btn-group" role="group">
<actions-component v-if="hasManualActions && canCreateDeployment"
:play-icon-svg="playIconSvg"
:actions="manualActions">
</actions-component>
</div>
<div v-if="externalURL && canReadEnvironment"
class="inline js-external-url-container">
<external-url-component
<external-url-component v-if="externalURL && canReadEnvironment"
:external-url="externalURL">
</external-url-component>
</div>
<div v-if="hasStopAction && canCreateDeployment"
class="inline js-stop-component-container">
<stop-component
<stop-component v-if="hasStopAction && canCreateDeployment"
:stop-url="model.stop_path">
</stop-component>
</div>
<div v-if="model && model.terminal_path"
class="inline js-terminal-button-container">
<terminal-button-component
<terminal-button-component v-if="model && model.terminal_path"
:terminal-icon-svg="terminalIconSvg"
:terminal-path="model.terminal_path">
</terminal-button-component>
</div>
<div v-if="canRetry && canCreateDeployment"
class="inline js-rollback-component-container">
<rollback-component
<rollback-component v-if="canRetry && canCreateDeployment"
:is-last-deployment="isLastDeployment"
:retry-url="retryUrl">
</rollback-component>
...
...
app/assets/stylesheets/pages/environments.scss
View file @
29b59456
...
...
@@ -35,7 +35,6 @@
display
:
table-cell
;
}
.environments-name
,
.environments-commit
,
.environments-actions
{
width
:
20%
;
...
...
@@ -45,6 +44,7 @@
width
:
10%
;
}
.environments-name
,
.environments-deploy
,
.environments-build
{
width
:
15%
;
...
...
@@ -62,6 +62,22 @@
}
}
.btn-group
{
>
a
{
color
:
$gl-text-color-secondary
;
}
svg
path
{
fill
:
$gl-text-color-secondary
;
}
.dropdown
{
outline
:
none
;
}
}
.commit-title
{
margin
:
0
;
}
...
...
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