.svn-log:before { content: ""; display: inline-block; background-image: url(https://intranet.cyanide-studio.com/_media/media/public/svn-logo.png); width: 16px; height: 16px; background-size: cover; vertical-align: middle; }
jQuery(() => {
jQuery(".plugin_wrap.wrap_svn, .plugin_wrap.wrap_svn-log").each(function() {
var wrap = jQuery(this);
var revision = wrap.attr("id");
var project = "xxx";
var requested_project = "xxx";
if (wrap.hasClass("wrap_styx")) { requested_project = "styx"; project = "styx3"; }
if (wrap.hasClass("wrap_styx3")) { requested_project = "styx3"; project = "styx3"; }
if (wrap.hasClass("wrap_bb")) { requested_project = "bb"; project = "bb3"; }
if (wrap.hasClass("wrap_bb3")) { requested_project = "bb3"; project = "bb3"; }
if (wrap.hasClass("wrap_tdf")) { requested_project = "tdf"; project = "pcmarcade2012"; }
if (wrap.hasClass("wrap_pcm")) { requested_project = "pcm"; project = "pcmarcade2012"; }
if (wrap.hasClass("wrap_drc")) { requested_project = "drc"; project = "dracula"; }
if (wrap.hasClass("wrap_dracula")) { requested_project = "dracula"; project = "dracula"; }
if (jQuery.isNumeric(revision)) {
var url = "https://web.cyanide-studio.com/svn/log/?project="+project+"&revision="+revision+"&embed=1&key=c85f4132505c0744ce4273e64b739f87";
jQuery.ajax({url: url, context: wrap, async: true, success: function(html) {
this.addClass("svn-log wrap_note");
var src = (requested_project == project) ? project : (requested_project + "(" + project + ")");
this.html(" " + src + "@" + revision + "
" + html);
}
});
}
});
});