Skip to content

Commit

Permalink
replace tabs with spaces
Browse files Browse the repository at this point in the history
this file is hopelessly mixed, clean that up before making the
actual change I want so it's clearer
  • Loading branch information
AdamWill committed Nov 18, 2015
1 parent ab70b82 commit fbe15be
Showing 1 changed file with 52 additions and 52 deletions.
104 changes: 52 additions & 52 deletions templates/layouts/bootstrap.html.ep
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
<meta name="csrf-param" content="csrf_token" />

% if ($title) {
<title><%= $appname . ": " . title %></title>
<title><%= $appname . ": " . title %></title>
% } else
% {
<title><%= $appname %></title>
<title><%= $appname %></title>
% }

<!-- Bootstrap core CSS -->
Expand All @@ -26,10 +26,10 @@
%= content_for 'head'

%= javascript begin
%= content_for 'head_javascript'
$(document).ready(function() {
%= content_for 'ready_function'
} );
%= content_for 'head_javascript'
$(document).ready(function() {
%= content_for 'ready_function'
} );
% end

<link rel="icon" href="/favicon.ico">
Expand All @@ -38,61 +38,61 @@
<body>
<div id="wrapper">
<nav class='container-fluid navbar navbar-default navbar-static-top'>
<div class='navbar-inner'>
<div class='container'>
<div class="navbar-header">
<a class="navbar-brand" href="#">
<img alt="Brand" src="/images/header-logo.png" />
</a>
</div>
<div class='collapse navbar-collapse'>
<ul class='nav navbar-nav' id='global-navigation'>
<li id='item-downloads'><a href="http://en.opensuse.org/openSUSE:Browse#Downloads">Downloads</a></li>
<li id='item-support'><a href="http://en.opensuse.org/openSUSE:Browse#Support">Support</a></li>
<li id='item-community'><a href="http://en.opensuse.org/openSUSE:Browse#Community">Community</a></li>
<li id='item-development'><a href="http://en.opensuse.org/openSUSE:Browse#Development">Development</a></li>
</ul>
</div>
</div>
</div>
<div class='navbar-inner'>
<div class='container'>
<div class="navbar-header">
<a class="navbar-brand" href="#">
<img alt="Brand" src="/images/header-logo.png" />
</a>
</div>
<div class='collapse navbar-collapse'>
<ul class='nav navbar-nav' id='global-navigation'>
<li id='item-downloads'><a href="http://en.opensuse.org/openSUSE:Browse#Downloads">Downloads</a></li>
<li id='item-support'><a href="http://en.opensuse.org/openSUSE:Browse#Support">Support</a></li>
<li id='item-community'><a href="http://en.opensuse.org/openSUSE:Browse#Community">Community</a></li>
<li id='item-development'><a href="http://en.opensuse.org/openSUSE:Browse#Development">Development</a></li>
</ul>
</div>
</div>
</div>
</nav>

<div class='container'>
<div class='row' id='subheader'>
<div class='col-md-7'>
%= breadcrumbs
</div>
<div class='col-md-5 text-right'>
<div id="user-info">
%# Using a variable to avoid additional whitespaces
% if (current_user) {
%# Using a variable to avoid additional whitespaces
% my $out = 'Logged as '. current_user->name.' (';
% if (is_operator) {
% $out = $out.link_to('manage API keys' => url_for('api_keys')).' | ';
% }
% if (is_admin) {
% $out = $out.link_to('admin' => url_for('admin')).' | ';
% }
%= b($out.link_to('Logout' => url_for('logout') => 'data-method' => 'delete').')');
% } else {
%= link_to('Login' => url_for('login'));
% }
</div>
</div>
</div>
%= content
<div class='row' id='subheader'>
<div class='col-md-7'>
%= breadcrumbs
</div>
<div class='col-md-5 text-right'>
<div id="user-info">
%# Using a variable to avoid additional whitespaces
% if (current_user) {
%# Using a variable to avoid additional whitespaces
% my $out = 'Logged as '. current_user->name.' (';
% if (is_operator) {
% $out = $out.link_to('manage API keys' => url_for('api_keys')).' | ';
% }
% if (is_admin) {
% $out = $out.link_to('admin' => url_for('admin')).' | ';
% }
%= b($out.link_to('Logout' => url_for('logout') => 'data-method' => 'delete').')');
% } else {
%= link_to('Login' => url_for('login'));
% }
</div>
</div>
</div>
%= content
</div>

<footer class='footer'>
<div class='container'>
<div id='footer-content'>
<div class='container'>
<div id='footer-content'>
%= content_for 'footer'
</div>
<div id='footer-legal'>
<div id='footer-legal'>
openQA is licensed <%= link_to 'GPL-2.0' => 'https://github.com/os-autoinst/openQA' %>
</div>
</div>
</div>
</div>
</footer>
</div>
</body>
Expand Down

0 comments on commit fbe15be

Please sign in to comment.