Moved the Agents into their own repo. Kept the agent.pl just for reference
This commit is contained in:
parent
22381be29a
commit
8680a02b13
18132 changed files with 0 additions and 2569420 deletions
|
|
@ -1,29 +0,0 @@
|
|||
.admin-buttons {
|
||||
width: 150px;
|
||||
height: 110px;
|
||||
margin: 0px 5px 5px 0px !important;
|
||||
}
|
||||
.admin-buttons > span {
|
||||
font-size: 0.9rem;
|
||||
display: block;
|
||||
}
|
||||
.admin-buttons:before {
|
||||
font-size: 40px;
|
||||
line-height: 40px;
|
||||
display: block;
|
||||
font-family: "Font Awesome 5 Free";
|
||||
font-weight: 900;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
.admin-buttons > img,
|
||||
.admin-buttons > br {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.table tr:first-of-type td {
|
||||
border-top: none;
|
||||
}
|
||||
|
||||
.main > h2 {
|
||||
margin-top: 2rem;
|
||||
}
|
||||
|
|
@ -1,57 +0,0 @@
|
|||
$(document).ready(function()
|
||||
{
|
||||
var adminButtonTable = $('.main table.administration-table').first();
|
||||
|
||||
$('<div class="administration-table d-flex flex-wrap justify-content-start"></div>').insertAfter(adminButtonTable);
|
||||
|
||||
$(adminButtonTable).parent('.card-body').addClass('pb-3');
|
||||
|
||||
$(adminButtonTable).find('a.administration-buttons').each(function()
|
||||
{
|
||||
$('div.administration-table').append('<a class="admin-buttons btn btn-primary d-flex flex-column justify-content-center align-items-center" href="' + $(this).attr('href') + '"><span>' + $(this).find('div').text() + '</span></a>');
|
||||
});
|
||||
|
||||
$(adminButtonTable).remove();
|
||||
|
||||
// better remove link buttons
|
||||
$('.remove-button').each(function()
|
||||
{
|
||||
$(this).replaceWith('<button class="btn btn-sm btn-danger"><i class="fas fa-trash mr-1"></i>'+langConsts['OGP_LANG_delete']+'</button>')
|
||||
});
|
||||
});
|
||||
|
||||
$(window).load(function()
|
||||
{
|
||||
$('.main [name="download"]').prepend('<i class="fas fa-download mr-1"></i>').addClass('btn-secondary');
|
||||
$('.main [name="restore"]').prepend('<i class="fas fa-upload mr-1"></i>').addClass('btn-warning');
|
||||
$('.main .custom-file').removeAttr('style');
|
||||
|
||||
// better links
|
||||
if($('img[src$="link.png"]').length>0)
|
||||
{
|
||||
var parentTable = $('img[src$="link.png"]').closest('.table-responsive');
|
||||
$(parentTable).after('<div class="administration-table externalLinks d-flex flex-wrap justify-content-start p-1"></div>');
|
||||
$(parentTable).find('td').each(function()
|
||||
{
|
||||
$('.externalLinks').append('<div class="elink">'+$(this).html()+'</div>');
|
||||
});
|
||||
$(parentTable).remove();
|
||||
|
||||
$('.main .elink > a').each(function()
|
||||
{
|
||||
$(this).addClass('admin-buttons btn btn-primary d-flex flex-column justify-content-center align-items-center');
|
||||
|
||||
// since that iframe shizzle isnt modern conform, i reset all links to external links
|
||||
$(this).attr('href', $(this).attr('href').replace('?m=administration&p=iframe&external_link=', '')).attr('target', '_blank');
|
||||
});
|
||||
}
|
||||
|
||||
// remove empty tables
|
||||
$('.main table').each(function()
|
||||
{
|
||||
if($(this).text().trim().length==0)
|
||||
{
|
||||
$(this).parent('.table-responsive').remove();
|
||||
}
|
||||
});
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue