* url fixes

* set value of external id if it exists
This commit is contained in:
Dávid Danyi 2016-08-30 13:38:11 +02:00
parent 60379e63cf
commit 2fbedeff97
4 changed files with 12 additions and 5 deletions

View File

@ -21,7 +21,7 @@
<body> <body>
<b>Just Drag'n'Drop the button into your Bookmarks</b> <b>Just Drag'n'Drop the button into your Bookmarks</b>
<div class="button"> <div class="button">
<a href="javascript:(function(){ var script = document.createElement(&quot;script&quot;); script.src = &quot;http://vasgyuro.tsp/~edvidan/jira-card-printer/bookmarklet.js&quot;; document.body.appendChild(script); document.body.removeChild(script);})();">CardPrinter</a> <a href="javascript:(function(){ var script = document.createElement(&quot;script&quot;); script.src = &quot;https://static.ragnarok.yvan.hu/jira-card-printer/bookmarklet.js&quot;; document.body.appendChild(script); document.body.removeChild(script);})();">CardPrinter</a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -291,6 +291,13 @@
card.find(".issue-assignee").remove(); card.find(".issue-assignee").remove();
} }
//ETH taurus-xft
if (data.externalIssueId) {
card.find(".issue-external-id").text(data.externalIssueId);
} else {
card.find(".issue-external-id").remove();
}
//Due-Date //Due-Date
if (data.dueDate) { if (data.dueDate) {
card.find(".issue-due-date").text(data.dueDate); card.find(".issue-due-date").text(data.dueDate);

View File

@ -2,7 +2,7 @@
javascript:(function(){ javascript:(function(){
var head = document.getElementsByTagName("head")[0]; var head = document.getElementsByTagName("head")[0];
var scriptElement = document.createElement("script"); var scriptElement = document.createElement("script");
scriptElement.src = 'http://vasgyuro.tsp/~edvidan/jira-card-printer/bookmarklet.js'; scriptElement.src = 'https://static.ragnarok.yvan.hu/jira-card-printer/bookmarklet.js';
head.appendChild(scriptElement); head.appendChild(scriptElement);
head.removeChild(scriptElement); head.removeChild(scriptElement);
})(); })();

View File

@ -2,13 +2,13 @@
require 'recipe/common.php'; require 'recipe/common.php';
server('prod', 'alfheim.yvan.hu', 2206) server('prod', 'alfheim.ragnarok.yvan.hu', 2206)
->user('yvan') ->user('yvan')
->forwardAgent() // You can use identity key, ssh config, or username/password to auth on the server. ->forwardAgent() // You can use identity key, ssh config, or username/password to auth on the server.
->stage('production') ->stage('production')
->env('deploy_path', '/var/www/cdn'); // Define the base path to deploy your project to. ->env('deploy_path', '/mnt/apps/jira-card-printer'); // Define the base path to deploy your project to.
set('repository', 'ssh://gogs@gogs.ragnarok.yvan.hu:2206/yvan/jira-card-printer.git'); set('repository', 'https://gogs.ragnarok.yvan.hu/yvan/jira-card-printer.git');
env('branch', 'taurus-xft'); env('branch', 'taurus-xft');
task('deploy', [ task('deploy', [