Project

General

Profile

« Previous | Next » 

Revision 82e47ae0

Added by Amos Benari about 12 years ago

  • ID 82e47ae0f86994702c3a084cc6150250a81034ee

updates UI to bootstrap v2

View differences:

app/views/layouts/application.html.erb
<html>
<head>
<title> <%= h(yield(:title) || "Foreman") %></title>
<%= stylesheet_link_tag 'jquery-ui', 'jquery.jnotify', 'bootstrap.min', 'style' %>
<%= javascript_include_tag :defaults, 'jquery_ujs', 'jquery-ui', 'highcharts', 'charts', 'jquery.jnotify', 'jquery.jeditable', 'bootstrap-dropdown', 'bootstrap-alerts', 'bootstrap-tabs', 'bootstrap-modal', 'bootstrap-twipsy', 'bootstrap-popover' %>
<%= stylesheet_link_tag 'jquery-ui', 'jquery.jnotify', 'bootstrap.min', 'style', 'bootstrap-responsive.min' %>
<%= javascript_include_tag :defaults, 'jquery_ujs', 'jquery-ui', 'highcharts', 'charts', 'jquery.jnotify', 'jquery.jeditable',
'bootstrap.min', 'bootstrap-dropdown', 'bootstrap-alert', 'bootstrap-tab', 'bootstrap-modal', 'bootstrap-tooltip', 'bootstrap-popover' %>
<%= csrf_meta_tag %>
<%= javascript_tag "var AUTH_TOKEN = #{form_authenticity_token.inspect};" if protect_against_forgery? %>
......
<body>
<div id="wrap">
<div class="topbar" data-dropdown="dropdown">
<div class="fill">
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<%= render 'home/topbar' %>
</div>
......
<%= render 'common/notice' unless @notices.empty? -%>
<div id="content" class="container">
<% unless @page_header.blank? -%>
<div class="row">
<h1 class="span16"><%=h @page_header %></h1>
<div class="row control-group">
<h1 class="span12"><%=h @page_header %></h1>
</div>
<% end -%>
<div class="row">
<div class="span8 la fl">
<div class= <%= searchable? ? "span6" : "span4" %>>
<%= render "common/searchbar" if searchable? %>
<%= yield(:search_bar) %>
</div>
<div id="title_action" class=<%= searchable? ? "span8" : "span12" %>> <%=h yield(:title_actions) %> </div>
<div id="title_action" class=<%= searchable? ? "span6" : "span8" %>> <%=h yield(:title_actions) %> </div>
</div>
<%= yield -%>

Also available in: Unified diff