]> source.dussan.org Git - archiva.git/commitdiff
MRM-1863 synchronize link and text link display for repository group
authorEric Barboni <skygo@apache.org>
Wed, 15 Oct 2014 19:46:24 +0000 (21:46 +0200)
committerEric Barboni <skygo@apache.org>
Wed, 15 Oct 2014 19:46:24 +0000 (21:46 +0200)
archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/templates/archiva/repositories.html

index f7fe3f042474901fd225d7c7de3454f5de6786be..62cce811adef44891ec8f1c6a1f3a4daa3d75129 100644 (file)
             </div>
           </div>
           <div>
-            <a href="${window.archivaRuntimeInfo.baseUrl}/repository/${repositoryGroup.id()}" target="_blank">
             {{if repositoryGroup.id()}}
+            {{if applicationUrl}}            
+            <a href="${applicationUrl}/repository/${repositoryGroup.id()}" target="_blank">
               ${applicationUrl}/repository/${repositoryGroup.id()}
-            {{/if}}
             </a>
+            {{else}}
+            <a href="${window.archivaRuntimeInfo.baseUrl}/repository/${repositoryGroup.id()}" target="_blank">
+              ${window.archivaRuntimeInfo.baseUrl}/repository/${repositoryGroup.id()}
+            </a>
+            {{/if}}
+            {{/if}}
           </div>
         </fieldset>
       </form>