Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
our_own_cloud_project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository 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
die_coolen_jungs
our_own_cloud_project
Commits
22541b73
Commit
22541b73
authored
9 years ago
by
Thomas Müller
Browse files
Options
Downloads
Plain Diff
Merge pull request #22422 from owncloud/issue-17230-better-promotion-of-app-updates
Make app updates better visible (part1)
parents
d2f4b4b4
87746e4a
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
settings/js/apps.js
+8
-1
8 additions, 1 deletion
settings/js/apps.js
settings/templates/apps.php
+4
-0
4 additions, 0 deletions
settings/templates/apps.php
with
12 additions
and
1 deletion
settings/js/apps.js
+
8
−
1
View file @
22541b73
...
...
@@ -124,6 +124,7 @@ OC.Settings.Apps = OC.Settings.Apps || {
$
(
'
.app-level .experimental
'
).
tipsy
({
fallback
:
t
(
'
settings
'
,
'
This app is not checked for security issues and is new or known to be unstable. Install at your own risk.
'
)});
},
complete
:
function
()
{
var
availableUpdates
=
0
;
$
(
'
#apps-list
'
).
removeClass
(
'
icon-loading
'
);
$
.
ajax
(
OC
.
generateUrl
(
'
settings/apps/list?category={categoryId}&includeUpdateInfo=1
'
,
{
categoryId
:
categoryId
...
...
@@ -135,8 +136,14 @@ OC.Settings.Apps = OC.Settings.Apps || {
var
$update
=
$
(
'
#app-
'
+
app
.
id
+
'
.update
'
);
$update
.
removeClass
(
'
hidden
'
);
$update
.
val
(
t
(
'
settings
'
,
'
Update to %s
'
).
replace
(
/%s/g
,
app
.
update
));
availableUpdates
++
;
OC
.
Settings
.
Apps
.
State
.
apps
[
app
.
id
].
update
=
true
;
}
})
});
if
(
availableUpdates
>
0
)
{
OC
.
Notification
.
show
(
n
(
'
settings
'
,
'
You have %n app update pending
'
,
'
You have %n app updates pending
'
,
availableUpdates
));
}
}
});
}
...
...
This diff is collapsed.
Click to expand it.
settings/templates/apps.php
+
4
−
0
View file @
22541b73
...
...
@@ -97,6 +97,10 @@ script(
<
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
>
<
div
class
=
"
app-dependencies update hidden
"
>
<
p
>
<?php
p
(
$l
->
t
(
'This app has an update available.'
));
?>
<
/p
>
<
/div
>
{{
#if
missingMinOwnCloudVersion
}}
<
div
class
=
"
app-dependencies
"
>
<
p
>
<?php
p
(
$l
->
t
(
'This app has no minimum ownCloud version assigned. This will be an error in ownCloud 11 and later.'
));
?>
<
/p
>
...
...
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