Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
Géocontrib Frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GéoContrib
Géocontrib Frontend
Commits
2f6d48fa
Commit
2f6d48fa
authored
3 years ago
by
Timothee P
Browse files
Options
Downloads
Patches
Plain Diff
fix create project buttons alignment
parent
1ee4a4bb
No related branches found
No related tags found
1 merge request
!38
Evol/redmine ticket 11083 full responsive design
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/views/Index.vue
+30
-23
30 additions, 23 deletions
src/views/Index.vue
with
30 additions
and
23 deletions
src/views/Index.vue
+
30
−
23
View file @
2f6d48fa
...
...
@@ -14,27 +14,29 @@
<h4
id=
"les_projets"
class=
"ui horizontal divider header"
>
PROJETS
</h4>
<!-- //todo : v-if can_create_project -->
<router-link
v-if=
"user"
:to=
"
{ name: 'project_create', params: { action: 'create' } }"
class="ui green basic button"
>
<i
class=
"plus icon"
></i>
Créer un nouveau projet
</router-link>
<!-- //todo : v-if can_create_project -->
<router-link
v-if=
"user"
:to=
"
{
name: 'project_type_list',
}"
class="ui blue basic button right floated"
>
<i
class=
"copy icon"
></i>
Accéder à la liste des modèles de projets
</router-link>
<div
class=
"flex"
>
<router-link
v-if=
"user"
:to=
"
{ name: 'project_create', params: { action: 'create' } }"
class="ui green basic button"
>
<i
class=
"plus icon"
></i>
Créer un nouveau projet
</router-link>
<!-- //todo : v-if can_create_project -->
<router-link
v-if=
"user"
:to=
"
{
name: 'project_type_list',
}"
class="ui blue basic button"
>
<i
class=
"copy icon"
></i>
Accéder à la liste des modèles de projets
</router-link>
</div>
<div
v-if=
"projects"
class=
"ui divided items"
>
<div
v-for=
"project in projects"
class=
"item"
:key=
"project.slug"
>
<div
class=
"ui tiny image"
>
<!-- // ? récupérer l'image sur serveur front (et non back) ? -->
<img
:src=
"
!project.thumbnail
...
...
@@ -108,19 +110,17 @@
<
script
>
import
{
mapState
}
from
"
vuex
"
;
export
default
{
name
:
"
Index
"
,
computed
:
{
...
mapState
([
"
projects
"
,
"
user
"
,
"
USER_LEVEL_PROJECTS
"
]),
//LOGO_PATH: () => require(configuration.VUE_APP_LOGO_PATH),
APPLICATION_NAME
:
function
()
{
return
this
.
$store
.
state
.
configuration
.
VUE_APP_APPLICATION_NAME
;
},
APPLICATION_ABSTRACT
:
function
()
{
APPLICATION_ABSTRACT
:
function
()
{
return
this
.
$store
.
state
.
configuration
.
VUE_APP_APPLICATION_ABSTRACT
;
},
DJANGO_BASE_URL
:
function
()
{
DJANGO_BASE_URL
:
function
()
{
return
this
.
$store
.
state
.
configuration
.
VUE_APP_DJANGO_BASE
;
},
},
...
...
@@ -138,4 +138,11 @@ export default {
}
},
};
</
script
>
\ No newline at end of file
</
script
>
<
style
scoped
>
.flex
{
display
:
flex
;
justify-content
:
space-between
;
}
</
style
>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment