mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-10-29 09:25:13 +08:00
🌴 Sync 2026-04-23 20:39:06
This commit is contained in:
1 parent
58437b8cc3
commit
2a153048f9
4 files changed
+99
-3
No files matched your search
@@ -0,0 +1,51 @@
|
||||
'use strict';
|
||||
|
||||
return L.Class.extend({
|
||||
desc: function(description, username, project) {
|
||||
var luci_project = 'luci-app-' + project;
|
||||
var title = _('if you have any problem, please click to view the project on GitHub : ') + project;
|
||||
var luci_title = _('if you have any problem, please click to view the luci ui project on GitHub : ') + luci_project;
|
||||
var package_label = 'package-' + project.replace(/-/g, '_') + '-default';
|
||||
var luci_label = 'luci-' + project.replace(/-/g, '_') + '-default';
|
||||
|
||||
return "<table style='border: 0; table-layout: auto;'>" +
|
||||
"<tr>" +
|
||||
"<td style='border: 0;'>" + _(description) + "</td>" +
|
||||
"<td style='border: 0;'>" +
|
||||
"<table style='border: 0; table-layout: auto;'>" +
|
||||
"<tr>" +
|
||||
"<td style='border: 0;'>" +
|
||||
"<a href='https://github.com/" + username + "/" + project + "' target='_blank' title='" + title + "'>" +
|
||||
"<img alt='" + project + "' src='https://img.shields.io/badge/" + package_label + "' />" +
|
||||
"<img alt='" + project + "' src='https://img.shields.io/github/stars/" + username + "/" + project + "?style=social' />" +
|
||||
"</a>" +
|
||||
"<a href='https://github.com/" + username + "/" + luci_project + "' target='_blank' title='" + luci_title + "'>" +
|
||||
"<img alt='" + luci_project + "' src='https://img.shields.io/badge/" + luci_label + "' />" +
|
||||
"<img alt='" + luci_project + "' src='https://img.shields.io/github/stars/" + username + "/" + luci_project + "?style=social' />" +
|
||||
"</a>" +
|
||||
"</td>" +
|
||||
"</tr>" +
|
||||
"</table>" +
|
||||
"</td>" +
|
||||
"</tr>" +
|
||||
"</table>";
|
||||
},
|
||||
|
||||
luci_desc: function(description, username, project) {
|
||||
var luci_label = 'luci-' + project.replace(/-/g, '_') + '-default';
|
||||
project = 'luci-app-' + project;
|
||||
var luci_title = _('if you have any problem, please click to view the luci ui project on GitHub : ') + project;
|
||||
|
||||
return "<table style='border: 0; table-layout: auto;'>" +
|
||||
"<tr>" +
|
||||
"<td style='border: 0;'>" + _(description) + "</td>" +
|
||||
"<td style='border: 0;'>" +
|
||||
"<a href='https://github.com/" + username + "/" + project + "' target='_blank' title='" + luci_title + "'>" +
|
||||
"<img alt='" + project + "' src='https://img.shields.io/badge/" + luci_label + "' />" +
|
||||
"<img alt='" + project + "' src='https://img.shields.io/github/stars/" + username + "/" + project + "?style=social' />" +
|
||||
"</a>" +
|
||||
"</td>" +
|
||||
"</tr>" +
|
||||
"</table>";
|
||||
}
|
||||
});
|
||||
Reference in new issue
Block a user