From c6d45b22b6ef91c5f76711960eedee6b46455c3d Mon Sep 17 00:00:00 2001 From: str4d <str4d@mail.i2p> Date: Thu, 12 Jul 2012 10:32:00 +0000 Subject: [PATCH] Added links to iframed pages to open them in new tabs (as per old console) --- apps/routerconsole/jsp/i2ptunnelmgr.jsp | 2 +- apps/routerconsole/jsp/torrents.jsp | 2 +- .../resources/themes/console/classic/console.css | 7 +++++++ .../themes/console/classic/images/newtab.png | Bin 0 -> 337 bytes .../resources/themes/console/dark/console.css | 7 +++++++ .../themes/console/dark/images/newtab.png | Bin 0 -> 489 bytes .../resources/themes/console/light/console.css | 7 +++++++ .../themes/console/light/images/newtab.png | Bin 0 -> 337 bytes .../resources/themes/console/midnight/console.css | 7 +++++++ .../themes/console/midnight/images/newtab.png | Bin 0 -> 481 bytes 10 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 installer/resources/themes/console/classic/images/newtab.png create mode 100644 installer/resources/themes/console/dark/images/newtab.png create mode 100644 installer/resources/themes/console/light/images/newtab.png create mode 100644 installer/resources/themes/console/midnight/images/newtab.png diff --git a/apps/routerconsole/jsp/i2ptunnelmgr.jsp b/apps/routerconsole/jsp/i2ptunnelmgr.jsp index b8ada141fe..dc388f28c2 100644 --- a/apps/routerconsole/jsp/i2ptunnelmgr.jsp +++ b/apps/routerconsole/jsp/i2ptunnelmgr.jsp @@ -37,7 +37,7 @@ <%@include file="summary.jsi" %> -<h1><%=intl._("I2P Tunnel Manager")%></h1> +<h1><%=intl._("I2P Tunnel Manager")%> <span class="newtab"><a href="/i2ptunnel/" target="_blank" title="<%=intl._("Open in new tab")%>"><img src="<%=intl.getTheme(request.getHeader("User-Agent"))%>images/newtab.png" /></a></span></h1> <div class="main" id="main"> <iframe src="/i2ptunnel/" width="100%" height="100%" frameborder="0" border="0" name="i2ptunnelframe" id="i2ptunnelframe" onload="setupFrame()" allowtransparency="true"> </iframe> diff --git a/apps/routerconsole/jsp/torrents.jsp b/apps/routerconsole/jsp/torrents.jsp index 9913840c93..690be49a5a 100644 --- a/apps/routerconsole/jsp/torrents.jsp +++ b/apps/routerconsole/jsp/torrents.jsp @@ -33,7 +33,7 @@ <%@include file="summary.jsi" %> -<h1><%=intl._("I2P Torrent Downloader")%></h1> +<h1><%=intl._("I2P Torrent Downloader")%> <span class="newtab"><a href="/i2psnark/" target="_blank" title="<%=intl._("Open in new tab")%>"><img src="<%=intl.getTheme(request.getHeader("User-Agent"))%>images/newtab.png" /></a></span></h1> <div class="main" id="main"> <iframe src="/i2psnark/" width="100%" height="100%" frameborder="0" border="0" name="i2psnarkframe" id="i2psnarkframe" onload="setupFrame()" allowtransparency="true"> </iframe> diff --git a/installer/resources/themes/console/classic/console.css b/installer/resources/themes/console/classic/console.css index df14c8aba3..6f9591417b 100644 --- a/installer/resources/themes/console/classic/console.css +++ b/installer/resources/themes/console/classic/console.css @@ -598,6 +598,13 @@ h1 { border-radius: 0 3px 0 0; } +span.newtab { + text-align: right; + font-size: 8pt; + float: right; + letter-spacing: 0; +} + h2 { font-size: 14pt; padding: 10px; diff --git a/installer/resources/themes/console/classic/images/newtab.png b/installer/resources/themes/console/classic/images/newtab.png new file mode 100644 index 0000000000000000000000000000000000000000..c70702b93ba89c2ebe8fb12914b2a31baf79d967 GIT binary patch literal 337 zcmV-X0j~auP)<h;3K|Lk000e1NJLTq000>P000yS1^@s6cz2e)00009a7bBm000id z000id0mpBsWB>pG14%?dR5*>@(y=ZCK^({N4|k#?kr1`|3XdRB=v1D7cmb7GqLO$5 z3XP~Go<O2dNF>+LYEL6Mp>e0MD`PV&V}`~rnPg|?x4&<G`(MhmhjGICbHI2a6R?5Z zmb+ziGINu3sHMp^wlMR<zz(jk831<L%&#$e!n(m+OM^RH*ZVG}E8_#66I(oD4KI-f z_gKMk_(DxTO9X_9HCU|fF6#5ijNlLuYcOaUb0KYjp~h#zZ8sD076A-!j-?QQRq|(Y z;Oh)dtDJtd-^YAyE*bo6@Z4`eK2<V!cuFyqLXz}<AmK0E!(~C%!gr97k4C)$K&Vj+ ja)fnE{Q_W!ljh+&ln7&^gGtID00000NkvXXu0mjfEyIhb literal 0 HcmV?d00001 diff --git a/installer/resources/themes/console/dark/console.css b/installer/resources/themes/console/dark/console.css index 7e52bfa121..4b63b0a989 100644 --- a/installer/resources/themes/console/dark/console.css +++ b/installer/resources/themes/console/dark/console.css @@ -768,6 +768,13 @@ h1 { box-shadow: 0 1px 5px #000; } +span.newtab { + text-align: right; + font-size: 8pt; + float: right; + letter-spacing: 0; +} + h2 { font-size: 12pt; color: #EE9; diff --git a/installer/resources/themes/console/dark/images/newtab.png b/installer/resources/themes/console/dark/images/newtab.png new file mode 100644 index 0000000000000000000000000000000000000000..eddeadf939bbd2732a756eff9b39d9b63e5e3c30 GIT binary patch literal 489 zcmV<F0T%v=P)<h;3K|Lk000e1NJLTq000>P000yS1^@s6cz2e)00009a7bBm000id z000id0mpBsWB>pGn@L1LR5*>@ls`)YK@i2?+{J)|BzVD8`3S+n^fnf1XC>IG7&KU_ zU%)~eK?O<F*1~|by`YtionRvhHVLzyoB_kRW0A{o#(%lBbGn^*%x`DjvV=bbb9ED- z_1|;}ljb7zBr|USwAzo}2*S+!L^R*8o=hNLg-AWAl-dSR`2=Y;Yg<GzMr38<H5D7c zMJ`vK`w0L5#9V6u7>s*!B3xOPJ(0;|T&13N0a=dJZUK50krL4HqzkwQ=%vp&8lLwu zStu0RN~s+H9{^hW<3t08-CWf8OUGH9?ROH9x*Y(*6?Fl*T;+lJAk>;ZVY{=U&l5P# z@MEvuGJ&|RyVvW1*8X^__1a`s)gJkEY>4X~IliyMb96<iRO-~SFd79A>FL;zY<7XQ z_SXO$eDt7p3}6bt8vuyt8=~a&(9qJIktg|l#S^Koc%GL{r^}5XJrdP8j<ZHI(*_KU z2Y{eK<Ci)BL*wJd|AB;_h)9vSdT!cC1bO=APfwup<ZL1;ngRgeJ3s)DGZ88gVc;*2 fAUv&c(wlq-EH$&rkv!(N00000NkvXXu0mjfl#kd# literal 0 HcmV?d00001 diff --git a/installer/resources/themes/console/light/console.css b/installer/resources/themes/console/light/console.css index 69dfb504e6..85e4a40dd7 100644 --- a/installer/resources/themes/console/light/console.css +++ b/installer/resources/themes/console/light/console.css @@ -892,6 +892,13 @@ h1 { min-width: 500px; } +span.newtab { + text-align: right; + font-size: 8pt; + float: right; + letter-spacing: 0; +} + h2 { font-size: 13pt; color: #115; diff --git a/installer/resources/themes/console/light/images/newtab.png b/installer/resources/themes/console/light/images/newtab.png new file mode 100644 index 0000000000000000000000000000000000000000..c70702b93ba89c2ebe8fb12914b2a31baf79d967 GIT binary patch literal 337 zcmV-X0j~auP)<h;3K|Lk000e1NJLTq000>P000yS1^@s6cz2e)00009a7bBm000id z000id0mpBsWB>pG14%?dR5*>@(y=ZCK^({N4|k#?kr1`|3XdRB=v1D7cmb7GqLO$5 z3XP~Go<O2dNF>+LYEL6Mp>e0MD`PV&V}`~rnPg|?x4&<G`(MhmhjGICbHI2a6R?5Z zmb+ziGINu3sHMp^wlMR<zz(jk831<L%&#$e!n(m+OM^RH*ZVG}E8_#66I(oD4KI-f z_gKMk_(DxTO9X_9HCU|fF6#5ijNlLuYcOaUb0KYjp~h#zZ8sD076A-!j-?QQRq|(Y z;Oh)dtDJtd-^YAyE*bo6@Z4`eK2<V!cuFyqLXz}<AmK0E!(~C%!gr97k4C)$K&Vj+ ja)fnE{Q_W!ljh+&ln7&^gGtID00000NkvXXu0mjfEyIhb literal 0 HcmV?d00001 diff --git a/installer/resources/themes/console/midnight/console.css b/installer/resources/themes/console/midnight/console.css index b3598d645c..db8322fe00 100644 --- a/installer/resources/themes/console/midnight/console.css +++ b/installer/resources/themes/console/midnight/console.css @@ -612,6 +612,13 @@ h1 { color: #fff; } +span.newtab { + text-align: right; + font-size: 8pt; + float: right; + letter-spacing: 0; +} + h2 { font-size: 13pt; padding: 10px 10px 10px 10px; diff --git a/installer/resources/themes/console/midnight/images/newtab.png b/installer/resources/themes/console/midnight/images/newtab.png new file mode 100644 index 0000000000000000000000000000000000000000..398df4889ad7b2bd9d1ce723d52025155523493b GIT binary patch literal 481 zcmV<70UrK|P)<h;3K|Lk000e1NJLTq000>P000yS1^@s6cz2e)00009a7bBm000id z000id0mpBsWB>pGlSxEDR5*>@k}*pIK@f%C>}ohGj~oP!OMXFug_eSijdr%S+9~NY z{s9YZlqiU3ZDC<;FKA_B5fE&G$L<voLnH<wxMN`w&KOK?wepoSkNNh^Ea4Z5qG-n$ zvo*{|Hp45GO3HQJZ2+62_{VG@uInBFSRK`Gm1K}Q>GlAue}gEccA0sOh$fQ^WoAi4 z*Fg}h`~(0#*Ht8<iKH(lqFZCk1~W^o^*(^LSo?v9UYL2N3+VzL0lbdLs2O7xvf1pL z*1Fsea2#j8-EN=8lXP_x1i|vCNjeG2_`0G8$8qL8&kMEIy`t6c>HrQfAVE5v*8P5A z1Bs&Oa1fx?YCUPKkNfO*i6LParj0T2Qg204$_oI~UjRZZC5Gg3x#v_WRU)F3I6x_N z#>|V%{0;!dn0q0_lJEOft94~EnP$CSFA5=MJ<kgPfQY8zo<^fl@_oMwSRNh#^7;H5 zfZC8g0L#NC)&GI?Zo<q3rPP(}AZE_|1bGJ_iKt);7^X31z63BsMB{%juPLQG?=OA; XAR(Tuo7eR+00000NkvXXu0mjfXtd4m literal 0 HcmV?d00001 -- GitLab