./views/blob.erb in dolt-0.1.0 vs ./views/blob.erb in dolt-0.1.1
- old
+ new
@@ -17,10 +17,11 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#++
%>
<%
@title = "#{blob.path} in #{repository.name}:master"
+ if !defined?(multi_repo_mode); multi_repo_mode = false; end
%>
<div class="gts-file">
<%#
<div class="dropdown gts-branch-selector pull-right">
<a href="#" data-toggle="dropdown" class="dropdown-toggle"><span class="caret"></span> <em>branch:</em> master</a>
@@ -32,12 +33,12 @@
</ul>
</div>
%>
<ul class="pull-right gts-blob-view">
<li class="active">Blob content</li>
- <li><a href="/<%= repository.name %>/blame/<%= ref %>:<%= blob.path %>">Blame</a></li>
- <li><a href="/<%= repository.name %>/history/<%= ref %>:<%= blob.path %>">History</a></li>
- <li><a href="/<%= repository.name %>/raw/<%= ref %>:<%= blob.path %>">Raw blob</a></li>
+ <li><a href="<%= blame_url(repository, blob, ref, multi_repo_mode) %>">Blame</a></li>
+ <li><a href="<%= history_url(repository, blob, ref, multi_repo_mode) %>">History</a></li>
+ <li><a href="<%= raw_url(repository, blob, ref, multi_repo_mode) %>">Raw blob</a></li>
</ul>
- <%= breadcrumb(repository, ref, blob.path) %>
+ <%= breadcrumb(repository, blob.path, ref, :multi_repo_mode => multi_repo_mode) %>
<%= highlight_lines(blob.path, blob.raw) %>
</div>