You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@shiro.apache.org by bd...@apache.org on 2016/10/24 16:24:14 UTC
svn commit: r1766431 - /shiro/site/publish/assets/js/shiro-site.js
Author: bdemers
Date: Mon Oct 24 16:24:14 2016
New Revision: 1766431
URL: http://svn.apache.org/viewvc?rev=1766431&view=rev
Log:
add missing shiro-site.js
Added:
shiro/site/publish/assets/js/shiro-site.js
Added: shiro/site/publish/assets/js/shiro-site.js
URL: http://svn.apache.org/viewvc/shiro/site/publish/assets/js/shiro-site.js?rev=1766431&view=auto
==============================================================================
--- shiro/site/publish/assets/js/shiro-site.js (added)
+++ shiro/site/publish/assets/js/shiro-site.js Mon Oct 24 16:24:14 2016
@@ -0,0 +1,16 @@
+
+function addPageEditLink() {
+
+ var ghRepo = "apache/shiro-site";
+ var ghRelHref = "https://github.com/" + ghRepo + "/edit/master/";
+
+ var ghEditPageElement = $( "#ghEditPage" );
+ var editThisPageElement = $(".editThisPage");
+
+ if (ghEditPageElement && ghEditPageElement.val() && editThisPageElement) {
+ var relGHPage = ghEditPageElement.val();
+
+ var ghEditHref = ghRelHref + relGHPage;
+ editThisPageElement.append("<a href='" + ghEditHref + "'>Edit this Page on Github</a>");
+ }
+}
\ No newline at end of file