1- <% #<?
1+ <%
22# Created J/12/12/2013
3- # Updated V/30/12/2016
3+ # Updated S/29/09/2018
44#
5- # Copyright 2008-2017 | Fabrice Creuzot (luigifab) <code~luigifab~info>
6- # https://redmine .luigifab.info/projects/ redmine/wiki /apijs
5+ # Copyright 2008-2018 | Fabrice Creuzot (luigifab) <code~luigifab~info>
6+ # https://www .luigifab.info/redmine/apijs
77#
88# This program is free software, you can redistribute it or modify
99# it under the terms of the GNU General Public License (GPL) as published
@@ -48,28 +48,20 @@ if File.directory?(APIJS_ROOT + '/show/')
4848end
4949
5050check = 'checked="checked"'
51- link1 = 'href="https://www.luigifab.info/apijs/index.php" onclick="window.open(this.href); return false;"';
52- link2 = 'href="https://redmine.luigifab.info/projects/redmine/wiki/apijs" onclick="window.open(this.href); return false;"';
53- link3 = 'href="https://redmine.luigifab.info/projects/apijs/wiki" onclick="window.open(this.href); return false;"';
5451%>
5552
56- <fieldset class ="apijs tabular settings info ">
57- < ul >
58- < li > <%= raw l ( :apijs_documentation , link1 : link1 , link2 : link2 , link3 : link3 ) %> </ li >
59- < li > <%= raw l ( :apijs_version ) %> < strong > <%= Redmine ::Plugin . find ( :redmine_apijs ) . version %> </ strong > </ li >
60- < li > <%= raw l ( :apijs_status ) %> < strong > <%= raw l ( settings [ 'enabled' ] == '1' ? :apijs_status_enabled : :apijs_status_disabled ) %> </ strong > </ li >
61- <% if settings [ 'enabled' ] == '1' %>
62- < li >
63- <%= raw l ( :apijs_samples ) %>
64- < button onclick ="apijs.dialog.dialogInformation('<%= raw l ( :apijs_sample1_title ) %> ','<%= raw l ( :apijs_sample1_text1 ) . gsub ( /['"\\ \x0 ]/ , '\\\\\0' ) %> '); " type ="button "> 1</ button >
65- < button onclick ="apijs.dialog.dialogInformation('<%= raw l ( :apijs_sample2_title ) %> ','[p]<%= raw l ( :apijs_sample2_text1 ) . gsub ( /['"\\ \x0 ]/ , '\\\\\0' ) %> [/p][p]<%= raw l ( :apijs_sample2_text2 , value : '[a href=\'https://www.luigifab.info/\' class=\'popup\']www.luigifab.info[/a]' ) . gsub ( /['"\\ \x0 ]/ , '\\\\\0' ) %> [/p]'); " type ="button "> 2</ button >
66- </ li >
67- <% end %>
68- </ ul >
69- </ fieldset >
53+ <p style ="margin:0.5em 1em; padding:0.5em; ">
54+ Luigifab/Apijs <%= Redmine ::Plugin . find ( :redmine_apijs ) . version %>
55+ < a href ="https://www.luigifab.info/redmine/apijs " style ="float:right; "> luigifab.info/redmine/apijs</ a >
56+ < a href ="https://www.luigifab.info/apijs " style ="float:right; margin:0 0.6em; "> luigifab.info/apijs</ a >
57+ </ p >
7058
7159< fieldset class ="box apijs tabular settings ">
7260 < legend > <%= raw l ( :apijs_config_apijs ) %> </ legend >
61+ <% if settings [ 'enabled' ] == '1' %>
62+ < button onclick ="apijs.dialog.dialogInformation('<%= raw l ( :apijs_sample1_title ) %> ','<%= raw l ( :apijs_sample1_text1 ) . gsub ( /['"\\ \x0 ]/ , '\\\\\0' ) %> '); " type ="button "> 1</ button >
63+ < button onclick ="apijs.dialog.dialogInformation('<%= raw l ( :apijs_sample2_title ) %> ','[p]<%= raw l ( :apijs_sample2_text1 ) . gsub ( /['"\\ \x0 ]/ , '\\\\\0' ) %> [/p][p]<%= raw l ( :apijs_sample2_text2 , value : '[a href=\'https://www.luigifab.info/\' class=\'popup\']www.luigifab.info[/a]' ) . gsub ( /['"\\ \x0 ]/ , '\\\\\0' ) %> [/p]'); " type ="button "> 2</ button >
64+ <% end %>
7365 < p >
7466 < label for ="apijsEnabled "> <%= raw l ( :apijs_config_enable ) %> </ label >
7567 < select name ="settings[enabled] " id ="apijsEnabled ">
@@ -86,7 +78,7 @@ link3 = 'href="https://redmine.luigifab.info/projects/apijs/wiki" onclick="windo
8678 </ p >
8779 < p >
8880 < label > <%= raw l ( :label_role_and_permissions ) %> </ label >
89- < a href ="<%= url_for ( { :controller => 'roles' , :action => 'permissions' } ) %> " onclick =" window.open(this.href); return false; " > <%= raw l ( :label_role_and_permissions ) %> </ a >
81+ < a href ="<%= url_for ( { :controller => 'roles' , :action => 'permissions' } ) %> "> <%= raw l ( :label_role_and_permissions ) %> </ a >
9082 < em class ="info "> <%= raw l ( :permission_edit_attachments ) %> , <%= raw l ( :permission_delete_attachments ) %> </ em >
9183 </ p >
9284</ fieldset >
0 commit comments