Use prettify on plugin details page
This commit is contained in:
parent
2c5f9eba6b
commit
1bfcaaf026
|
|
@ -27,6 +27,7 @@
|
||||||
}
|
}
|
||||||
.plugin-details-content pre {
|
.plugin-details-content pre {
|
||||||
display: block;
|
display: block;
|
||||||
|
border: none;
|
||||||
padding: 10px 10px 10px 20px;
|
padding: 10px 10px 10px 20px;
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
word-break: break-all;
|
word-break: break-all;
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,25 @@
|
||||||
|
/*
|
||||||
|
* Details page
|
||||||
|
*/
|
||||||
|
|
||||||
|
+function ($) { "use strict";
|
||||||
|
|
||||||
|
var UpdateDetails = function () {
|
||||||
|
this.init()
|
||||||
|
}
|
||||||
|
|
||||||
|
UpdateDetails.prototype.init = function() {
|
||||||
|
|
||||||
|
$(document).ready(function() {
|
||||||
|
$('.plugin-details-content pre').addClass('prettyprint')
|
||||||
|
prettyPrint()
|
||||||
|
})
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($.oc === undefined)
|
||||||
|
$.oc = {}
|
||||||
|
|
||||||
|
$.oc.updateDetails = new UpdateDetails;
|
||||||
|
|
||||||
|
}(window.jQuery);
|
||||||
|
|
@ -19,7 +19,7 @@
|
||||||
|
|
||||||
this.dataSet = {}
|
this.dataSet = {}
|
||||||
|
|
||||||
$(document).ready(function(){
|
$(document).ready(function() {
|
||||||
|
|
||||||
self.bindSearch('#pluginSearchInput')
|
self.bindSearch('#pluginSearchInput')
|
||||||
self.bindSearch('#themeSearchInput')
|
self.bindSearch('#themeSearchInput')
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,7 @@
|
||||||
|
|
||||||
pre {
|
pre {
|
||||||
display: block;
|
display: block;
|
||||||
|
border: none;
|
||||||
padding: 10px 10px 10px (@padding-standard + @padding-container);
|
padding: 10px 10px 10px (@padding-standard + @padding-container);
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
word-break: break-all;
|
word-break: break-all;
|
||||||
|
|
|
||||||
|
|
@ -104,6 +104,7 @@ class Updates extends Controller
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$this->pageTitle = 'system::lang.updates.details_title';
|
$this->pageTitle = 'system::lang.updates.details_title';
|
||||||
|
$this->addJs('/modules/system/assets/js/updates/details.js', 'core');
|
||||||
$this->addCss('/modules/system/assets/css/updates/details.css', 'core');
|
$this->addCss('/modules/system/assets/css/updates/details.css', 'core');
|
||||||
|
|
||||||
$readmeFiles = ['README.md', 'readme.md'];
|
$readmeFiles = ['README.md', 'readme.md'];
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue