./views/blob.erb in dolt-0.1.1 vs ./views/blob.erb in dolt-0.2.0
- old
+ new
@@ -15,14 +15,11 @@
#
# You should have received a copy of the GNU Affero General Public License
# 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
-%>
+<% @title = "#{path} in #{repository}:master" %>
<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>
<ul class="dropdown-menu">
@@ -33,12 +30,12 @@
</ul>
</div>
%>
<ul class="pull-right gts-blob-view">
<li class="active">Blob content</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>
+ <li><a href="<%= blame_url(repository, ref, path) %>">Blame</a></li>
+ <li><a href="<%= history_url(repository, ref, path) %>">History</a></li>
+ <li><a href="<%= raw_url(repository, ref, path) %>">Raw blob</a></li>
</ul>
- <%= breadcrumb(repository, blob.path, ref, :multi_repo_mode => multi_repo_mode) %>
- <%= highlight_lines(blob.path, blob.raw) %>
+ <%= breadcrumb(repository, ref, path) %>
+ <%= format_blob(path, blob.content) %>
</div>