Make external links in About modal open in new tab (OHIF-52)

This commit is contained in:
Erik Ziegler 2016-08-11 15:01:29 +02:00
parent d832856cdb
commit 033eca0dbd
3 changed files with 17 additions and 8 deletions

View File

@ -1,7 +1,9 @@
<template name="ohifViewer"> <template name="ohifViewer">
<div class="topBar noselect {{#if onStudyList}}studyList{{/if}}"> <div class="topBar noselect {{#if onStudyList}}studyList{{/if}}">
<div class="clearfix p-x-1 p-t-1"> <div class="clearfix p-x-1 p-t-1">
<a class="brandSection pull-left" href="http://ohif.org"> <a target='_blank'
class="brandSection pull-left"
href="http://ohif.org">
<svg class="logoImage"> <svg class="logoImage">
<use xlink:href="/packages/viewerbase/assets/icons.svg#icon-ohif-logo"></use> <use xlink:href="/packages/viewerbase/assets/icons.svg#icon-ohif-logo"></use>
</svg> </svg>

View File

@ -1,7 +1,9 @@
<template name="lesionTracker"> <template name="lesionTracker">
<div class="topBar noselect {{#if onStudyList}}studyList{{/if}}"> <div class="topBar noselect {{#if onStudyList}}studyList{{/if}}">
<div class="clearfix p-x-1 p-t-1"> <div class="clearfix p-x-1 p-t-1">
<a class="brandSection pull-left" href="http://ohif.org"> <a target='_blank'
class="brandSection pull-left"
href="http://ohif.org">
<svg class="logoImage"> <svg class="logoImage">
<use xlink:href="/packages/viewerbase/assets/icons.svg#icon-ohif-logo"></use> <use xlink:href="/packages/viewerbase/assets/icons.svg#icon-ohif-logo"></use>
</svg> </svg>
@ -10,7 +12,7 @@
</div> </div>
</a> </a>
{{ #if studyListToggleText }} {{ #if studyListToggleText }}
<a class="btn studyListLinkSection pull-left m-x-1 p-x-2 js-toggle-studyList"> <a class="btn studyListLinkSection pull-left m-x-1 p-x-2 p-y-0 js-toggle-studyList">
{{studyListToggleText}} {{studyListToggleText}}
</a> </a>
{{ /if }} {{ /if }}

View File

@ -19,7 +19,8 @@
</h4> </h4>
</div> </div>
<div class="modal-body"> <div class="modal-body">
<a class='forkOnGithub' <a target='_blank'
class='forkOnGithub'
href="{{githubUrl}}"> href="{{githubUrl}}">
<img src="https://camo.githubusercontent.com/365986a132ccd6a44c23a9169022c0b5c890c387/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f7265645f6161303030302e706e67" <img src="https://camo.githubusercontent.com/365986a132ccd6a44c23a9169022c0b5c890c387/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f7265645f6161303030302e706e67"
alt="Fork me on GitHub" alt="Fork me on GitHub"
@ -30,16 +31,19 @@
<use xlink:href="/packages/viewerbase/assets/icons.svg#icon-ohif-logo"></use> <use xlink:href="/packages/viewerbase/assets/icons.svg#icon-ohif-logo"></use>
</svg> </svg>
<a class="logoText" <a class="logoText"
target="_blank"
href="http://ohif.org"> href="http://ohif.org">
Open Health Imaging Foundation DICOM Viewer Open Health Imaging Foundation DICOM Viewer
</a> </a>
</div> </div>
<div class="p-x-1 p-y-1 m-y-2"> <div class="p-x-1 p-y-1 m-y-2">
<a class="btn btn-default inline" <a class="btn btn-default inline"
target='_blank'
href="https://groups.google.com/forum/#!forum/cornerstone-platform"> href="https://groups.google.com/forum/#!forum/cornerstone-platform">
Visit the forum Visit the forum
</a> </a>
<a class="btn btn-default inline" <a class="btn btn-default inline"
target='_blank'
href="https://github.com/OHIF/Viewers/issues"> href="https://github.com/OHIF/Viewers/issues">
Report an issue Report an issue
</a> </a>
@ -57,13 +61,14 @@
<tr> <tr>
<td>Repository URL</td> <td>Repository URL</td>
<td> <td>
<a href="{{githubUrl}}">{{githubUrl}}</a> <a target='_blank'
href="{{githubUrl}}">{{githubUrl}}</a>
</td> </td>
</tr> </tr>
<tr> <tr>
<td>Last Commit Hash</td> <td>Last Commit Hash</td>
<td> <td>
<a href="{{githubUrl}}/commit/{{gitRev 'long'}}"> <a target='_blank' href="{{githubUrl}}/commit/{{gitRev 'long'}}">
{{gitRev 'long'}} {{gitRev 'long'}}
</a> </a>
</td> </td>
@ -71,7 +76,7 @@
<tr> <tr>
<td>Latest Tag</td> <td>Latest Tag</td>
<td> <td>
<a href="{{githubUrl}}/releases/tag/{{gitRev 'tag'}}"> <a target='_blank' href="{{githubUrl}}/releases/tag/{{gitRev 'tag'}}">
{{gitRev 'tag'}} {{gitRev 'tag'}}
</a> </a>
</td> </td>
@ -79,7 +84,7 @@
<tr> <tr>
<td>Branch</td> <td>Branch</td>
<td> <td>
<a href="{{githubUrl}}/tree/{{gitRev 'branch'}}"> <a target='_blank' href="{{githubUrl}}/tree/{{gitRev 'branch'}}">
{{gitRev 'branch'}} {{gitRev 'branch'}}
</a> </a>
</td> </td>