-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from WardsParadox/master
Added Pending Uninstalls Widget for Munki
- Loading branch information
Showing
6 changed files
with
114 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
## managedinstalls Module for Munkireport-PHP | ||
|
||
|
||
| Field | Type | | ||
|-----------------|--------------------| | ||
| id | int(10) | | ||
| serial_number | varchar(255) | | ||
| name | varchar(255) | | ||
| display_name | varchar(255) | | ||
| version | varchar(78) | | ||
| size | int(11) | | ||
| installed | int(11) | | ||
| status | varchar(255) | | ||
| type | varchar(255) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<div class="col-lg-4 col-md-6"> | ||
|
||
<div class="panel panel-default" id="pending-removals-munki-widget"> | ||
<div class="panel-heading" data-container="body" data-i18n="[title]managedinstalls.widget.pending_removals_munki.tooltip"> | ||
<h3 class="panel-title"><i class="fa fa-shopping-cart"></i> | ||
<span data-i18n="managedinstalls.widget.pending_removals_munki.title"></span> | ||
<list-link data-url="/module/managedinstalls/listing/#pending_removal"></list-link> | ||
</h3> | ||
</div> | ||
<div class="list-group scroll-box"></div> | ||
</div><!-- /panel --> | ||
|
||
</div><!-- /col --> | ||
|
||
<script> | ||
$(document).on('appUpdate', function(e, lang) { | ||
$.getJSON( appUrl + '/module/managedinstalls/get_pending_removals/munki', function( data ) { | ||
var box = $('#pending-removals-munki-widget div.scroll-box').empty(); | ||
if(data.length){ | ||
$.each(data, function(i,d){ | ||
var badge = '<span class="badge pull-right">'+d.count+'</span>', | ||
url = appUrl+'/module/managedinstalls/listing/'+d.name+'#pending_removal', | ||
display_name = d.display_name || d.name; | ||
box.append('<a href="'+url+'" class="list-group-item">'+display_name+' '+d.version+badge+'</a>'); | ||
}); | ||
} | ||
else{ | ||
box.append('<span class="list-group-item">'+i18n.t('managedinstalls.no_updates_pending')+'</span>'); | ||
} | ||
}); | ||
}); | ||
</script> |