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
fda4128a
Unverified
Commit
fda4128a
authored
Apr 17, 2018
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
moved styles out of the component
added theme styles
parent
201afb0f
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
15 deletions
+20
-15
ide_side_bar.vue
app/assets/javascripts/ide/components/ide_side_bar.vue
+1
-14
ide_router.js
app/assets/javascripts/ide/ide_router.js
+1
-1
actions.js
app/assets/javascripts/ide/stores/actions.js
+4
-0
gitlab_theme.scss
app/assets/stylesheets/framework/gitlab_theme.scss
+4
-0
repo.scss
app/assets/stylesheets/pages/repo.scss
+10
-0
No files found.
app/assets/javascripts/ide/components/ide_side_bar.vue
View file @
fda4128a
...
...
@@ -49,7 +49,7 @@ export default {
</div>
</
template
>
<
template
v-else
>
<div
class=
"context-header"
>
<div
class=
"context-header
ide-context-header
"
>
<a
:href=
"currentProject.web_url"
>
...
...
@@ -76,7 +76,6 @@ export default {
{{
currentProject
.
name
}}
</div>
<div
v-if=
"currentBranchId !== ''"
class=
"sidebar-context-title ide-sidebar-branch-title"
>
<icon
...
...
@@ -96,15 +95,3 @@ export default {
</div>
</resizable-panel>
</template>
<
style
>
.ide-sidebar-branch-title
{
font-weight
:
normal
;
}
.ide-sidebar-branch-title
svg
{
position
:
relative
;
top
:
3px
;
margin-top
:
-1px
;
}
</
style
>
app/assets/javascripts/ide/ide_router.js
View file @
fda4128a
...
...
@@ -63,7 +63,7 @@ router.beforeEach((to, from, next) => {
const
fullProjectId
=
`
${
to
.
params
.
namespace
}
/
${
to
.
params
.
project
}
`
;
if
(
to
.
params
.
branch
)
{
store
.
commit
(
'SET_CURRENT_BRANCH
'
,
to
.
params
.
branch
);
store
.
dispatch
(
'setCurrentBranchId
'
,
to
.
params
.
branch
);
store
.
dispatch
(
'getBranchData'
,
{
projectId
:
fullProjectId
,
...
...
app/assets/javascripts/ide/stores/actions.js
View file @
fda4128a
...
...
@@ -120,6 +120,10 @@ export const setEmptyStateSvgs = ({ commit }, svgs) => {
commit
(
types
.
SET_EMPTY_STATE_SVGS
,
svgs
);
};
export
const
setCurrentBranchId
=
({
commit
},
currentBranchId
)
=>
{
commit
(
types
.
SET_CURRENT_BRANCH
,
currentBranchId
);
};
export
*
from
'./actions/tree'
;
export
*
from
'./actions/file'
;
export
*
from
'./actions/project'
;
...
...
app/assets/stylesheets/framework/gitlab_theme.scss
View file @
fda4128a
...
...
@@ -196,6 +196,10 @@
box-shadow
:
inset
3px
0
$color-700
;
}
}
.ide-context-header
a
{
color
:
$color-700
;
}
}
body
{
...
...
app/assets/stylesheets/pages/repo.scss
View file @
fda4128a
...
...
@@ -895,3 +895,13 @@
margin-left
:
auto
;
}
}
.ide-sidebar-branch-title
{
font-weight
:
$gl-font-weight-normal
;
svg
{
position
:
relative
;
top
:
3px
;
margin-top
:
-1px
;
}
}
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