Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
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
bdb40891
Commit
bdb40891
authored
Mar 06, 2015
by
Jan-Christoph Borchardt
Browse files
collapse app descriptions by default, make expandable, fix #13112
parent
0868e496
Changes
3
Hide whitespace changes
Inline
Side-by-side
settings/css/settings.css
View file @
bdb40891
...
...
@@ -217,6 +217,21 @@ span.version { margin-left:1em; margin-right:1em; color:#555; }
.recommendedapp
{
display
:
inline-block
;
}
.app-description-toggle-show
,
.app-description-toggle-hide
{
clear
:
both
;
padding
:
7px
0
;
cursor
:
pointer
;
-ms-filter
:
"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"
;
opacity
:
.5
;
}
.app-description-container
{
clear
:
both
;
position
:
relative
;
top
:
7px
;
}
.app-description
{
clear
:
both
;
}
...
...
settings/js/apps.js
View file @
bdb40891
...
...
@@ -369,6 +369,17 @@ OC.Settings.Apps = OC.Settings.Apps || {
OC
.
Settings
.
Apps
.
loadCategory
(
categoryId
);
});
$
(
document
).
on
(
'
click
'
,
'
.app-description-toggle-show
'
,
function
()
{
$
(
this
).
addClass
(
'
hidden
'
);
$
(
this
).
siblings
(
'
.app-description-toggle-hide
'
).
removeClass
(
'
hidden
'
);
$
(
this
).
siblings
(
'
.app-description-container
'
).
slideDown
();
});
$
(
document
).
on
(
'
click
'
,
'
.app-description-toggle-hide
'
,
function
()
{
$
(
this
).
addClass
(
'
hidden
'
);
$
(
this
).
siblings
(
'
.app-description-toggle-show
'
).
removeClass
(
'
hidden
'
);
$
(
this
).
siblings
(
'
.app-description-container
'
).
slideUp
();
});
$
(
document
).
on
(
'
click
'
,
'
#apps-list input.enable
'
,
function
()
{
var
appId
=
$
(
this
).
data
(
'
appid
'
);
var
element
=
$
(
this
);
...
...
settings/templates/apps.php
View file @
bdb40891
...
...
@@ -33,24 +33,30 @@
<
div
class
=
"
{{internalclass}} icon-checkmark
"
>
{{
internallabel
}}
<
/div
>
{{
/
if
}}
<
div
class
=
"
app-detailpage
"
><
/div
>
<
div
class
=
"
app-description
"
><
pre
>
{{
description
}}
<
/pre></
div
>
<!--<
div
class
=
"
app-changed
"
>
{{
changed
}}
<
/div>--
>
{{
#
if
documentation
}}
<
p
class
=
"
documentation
"
>
<?php
p
(
$l
->
t
(
"Documentation:"
));
?>
{{
#
if
documentation
.
user
}}
<
span
class
=
"
userDocumentation appslink
"
>
<
a
id
=
'
userDocumentation
'
href
=
'
{{documentation.user}}
'
target
=
"
_blank
"
>
<?php
p
(
$l
->
t
(
"User Documentation"
));
?>
<
/a
>
<
/span
>
{{
/
if
}}
{{
#
if
documentation
.
admin
}}
<
span
class
=
"
adminDocumentation appslink
"
>
<
a
id
=
'
adminDocumentation
'
href
=
'
{{documentation.admin}}
'
target
=
"
_blank
"
>
<?php
p
(
$l
->
t
(
"Admin Documentation"
));
?>
<
/a
>
<
/span
>
<
div
class
=
"
app-description-container hidden
"
>
<
div
class
=
"
app-description
"
><
pre
>
{{
description
}}
<
/pre></
div
>
<!--<
div
class
=
"
app-changed
"
>
{{
changed
}}
<
/div>--
>
{{
#
if
documentation
}}
<
p
class
=
"
documentation
"
>
<?php
p
(
$l
->
t
(
"Documentation:"
));
?>
{{
#
if
documentation
.
user
}}
<
span
class
=
"
userDocumentation appslink
"
>
<
a
id
=
'
userDocumentation
'
href
=
'
{{documentation.user}}
'
target
=
"
_blank
"
>
<?php
p
(
$l
->
t
(
"User Documentation"
));
?>
<
/a
>
<
/span
>
{{
/
if
}}
{{
#
if
documentation
.
admin
}}
<
span
class
=
"
adminDocumentation appslink
"
>
<
a
id
=
'
adminDocumentation
'
href
=
'
{{documentation.admin}}
'
target
=
"
_blank
"
>
<?php
p
(
$l
->
t
(
"Admin Documentation"
));
?>
<
/a
>
<
/span
>
{{
/
if
}}
<
/p
>
{{
/
if
}}
<
/p
>
{{
/
if
}}
<
/div><!-- end app-description-container --
>
<
div
class
=
"
app-description-toggle-show
"
>
<?php
p
(
$l
->
t
(
"Show description …"
));
?>
<
/div
>
<
div
class
=
"
app-description-toggle-hide hidden
"
>
<?php
p
(
$l
->
t
(
"Hide description …"
));
?>
<
/div
>
{{
#
unless
canInstall
}}
<
div
class
=
"
app-dependencies
"
>
<
p
>
<?php
p
(
$l
->
t
(
'This app cannot be installed because the following dependencies are not fulfilled:'
));
?>
<
/p
>
...
...
Write
Preview
Supports
Markdown
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