Skip to content
This repository

Missing closed div in the erb template. #117

Merged
merged 1 commit into from over 2 years ago

3 participants

florian mhun Ryan Bates Seyhun Akyürek
florian mhun

I added a missing closed div in the erb template. I reformatted this file too.

Seyhun Akyürek seyhunak merged commit 9162f90 into from
Ryan Bates

This isn't quite correct. There are now too many closing div tags.

Also, does the span1 need to be there at all? Shouldn't it add up to 12 columns? (9 + 3)

Seyhun Akyürek
Owner

@ryanb . I'll reformat that and yes basically its (9+3)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Feb 24, 2012
florian mhun floomoon Add a missing closed div in the erb template. I reformatted this part…
… too.
53ae4b4
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 13 additions and 12 deletions. Show diff stats Hide diff stats

  1. +13 12 lib/generators/bootstrap/layout/templates/layout.html.erb
25 lib/generators/bootstrap/layout/templates/layout.html.erb
@@ -52,14 +52,14 @@
52 52
53 53 <div class="<%= container_class %>">
54 54 <%- if layout_type == "fluid" -%>
55   - <div class="row-fluid">
  55 + <div class="row-fluid">
56 56 <div class="span3">
57 57 <div class="well sidebar-nav">
58 58 <ul class="nav nav-list">
59 59 <li class="nav-header">Sidebar</li>
60 60 <%- (1..3).each do |i| -%>
61   - <li><%%= link_to "Link<%= i %>", "/path<%= i %>" %></li>
62   - <%- end -%>
  61 + <li><%%= link_to "Link<%= i %>", "/path<%= i %>" %></li>
  62 + <%- end -%>
63 63 </ul>
64 64 </div><!--/.well -->
65 65 </div><!--/span-->
@@ -68,25 +68,26 @@
68 68 </div>
69 69 </div><!--/row-->
70 70 <%- else -%>
71   - <div class="content">
72   - <div class="row">
73   - <div class="span9">
  71 + <div class="content">
  72 + <div class="row">
  73 + <div class="span9">
74 74 <%%= yield %>
75   - </div>
76   - <div class="span1">&nbsp;</div>
  75 + </div>
  76 + <div class="span1">&nbsp;</div>
77 77 <div class="span3">
78 78 <div class="well sidebar-nav">
79 79 <h3>Sidebar</h3>
80   - <ul class="nav nav-list">
81   - <li class="nav-header">Sidebar</li>
  80 + <ul class="nav nav-list">
  81 + <li class="nav-header">Sidebar</li>
82 82 <%- (1..3).each do |i| -%>
83 83 <li><%%= link_to "Link<%= i %>", "/path<%= i %>" %></li>
84 84 <%- end -%>
85 85 </ul>
  86 + </div>
86 87 </div>
87   - </div>
88 88 </div>
89   - </div>
  89 + </div><!--/row-->
  90 + </div><!--/content-->
90 91 <%- end -%>
91 92
92 93 <footer>

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.