]> source.dussan.org Git - archiva.git/commitdiff
browse not link neither divider for last breadcrumb part
authorOlivier Lamy <olamy@apache.org>
Sat, 18 Feb 2012 00:17:52 +0000 (00:17 +0000)
committerOlivier Lamy <olamy@apache.org>
Sat, 18 Feb 2012 00:17:52 +0000 (00:17 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1245814 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/images/go-home.png [new file with mode: 0644]
archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/templates/search.html

diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/images/go-home.png b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/images/go-home.png
new file mode 100644 (file)
index 0000000..a3ca103
Binary files /dev/null and b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/images/go-home.png differ
index 74bf3daa5bd4fd25728a8ad4275facfb4e1d5827..079bb5e35d2e2fc60914e3ac9a23774f26acf31b 100644 (file)
 
 <script id="browse-breadcrumb-tmpl" type="text/html">
   <ul class="breadcrumb">
-    <li><a href="#" data-bind="click: function(){ browseRoot()}"><i class="icon-home"/>&nbsp;</a>&nbsp;<span class="divider">/</span></li>
+    <li>
+      <a href="#" data-bind="click: function(){ browseRoot()}">
+        <!--img src="images/go-home.png"/-->
+        <i class="icon-home"/>&nbsp;</a>&nbsp;<span class="divider">/</span>
+    </li>
+    {{var number=breadCrumbEntries().length}}
     {{each(i,breadCrumbEntry) breadCrumbEntries}}
-      <li data-bind="click: function(){displayGroupId(breadCrumbEntry.groupId)}">
-        <a href="#">${breadCrumbEntry.displayValue}</a>&nbsp;<span class="divider">/</span>
+      <li>
+        {{if i==number-1}}
+          ${breadCrumbEntry.displayValue}
+        {{else}}
+          <a href="#" data-bind="click: function(){displayGroupId(breadCrumbEntry.groupId)}">${breadCrumbEntry.displayValue}</a>
+        {{/if}}
+        {{if i<number-1}}
+          &nbsp;
+          <span class="divider">/</span>
+        {{/if}}
       </li>
     {{/each}}
   </ul>