Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
die_coolen_jungs
our_own_cloud_project
Commits
d235a9c1
Commit
d235a9c1
authored
Dec 01, 2014
by
Thomas Müller
Browse files
display missing dependencies in the apps management page
parent
b469e9f6
Changes
2
Hide whitespace changes
Inline
Side-by-side
settings/css/settings.css
View file @
d235a9c1
...
...
@@ -200,6 +200,12 @@ span.version { margin-left:1em; margin-right:1em; color:#555; }
border-bottom
:
1px
solid
#e8e8e8
;
}
.missing-dependencies
{
list-style
:
initial
;
list-style-type
:
initial
;
list-style-position
:
inside
;
}
/* Transition to complete width! */
.app
:hover
,
.app
:active
{
max-width
:
inherit
;
}
...
...
settings/templates/apps.php
View file @
d235a9c1
...
...
@@ -51,6 +51,15 @@
{{
/
if
}}
<
/p
>
{{
/
if
}}
{{
#
unless
canInstall
}}
<
div
>
<?php
p
(
$l
->
t
(
'This app cannot be installed because the following dependencies are not fulfilled:'
));
?>
<
/div
>
<
ul
class
=
"
missing-dependencies
"
>
{{
#
each
missingDependencies
}}
<
li
>
{{
this
}}
<
/li
>
{{
/
each
}}
<
/ul
>
{{
/
unless
}}
{{
#
if
update
}}
<
input
class
=
"
update
"
type
=
"
submit
"
value
=
"
<?php
p
(
$l
->
t
(
'Update to %s'
,
array
(
'{{update}}'
)));
?>
"
data
-
appid
=
"
{{id}}
"
/>
{{
/
if
}}
...
...
@@ -61,8 +70,10 @@
<
br
/>
<
input
type
=
"
hidden
"
id
=
"
group_select
"
title
=
"
<?php
p
(
$l
->
t
(
'All'
));
?>
"
style
=
"
width: 200px
"
>
{{
else
}}
{{
#
if
canInstall
}}
<
input
class
=
"
enable
"
type
=
"
submit
"
data
-
appid
=
"
{{id}}
"
data
-
active
=
"
false
"
value
=
"
<?php
p
(
$l
->
t
(
"Enable"
));
?>
"
/>
{{
/
if
}}
{{
/
if
}}
{{
#
if
canUnInstall
}}
<
input
class
=
"
uninstall
"
type
=
"
submit
"
value
=
"
<?php
p
(
$l
->
t
(
'Uninstall App'
));
?>
"
data
-
appid
=
"
{{id}}
"
/>
{{
/
if
}}
...
...
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