Skip to content

Commit

Permalink
fixed some small html-code errors
Browse files Browse the repository at this point in the history
workaround to the problem with firefox not sizing div/table correctly if tabs(\t)
are used in <pre> tags --> for now replaced with 2 spaces on output.

removed some backup copies of the editor from the versioncontrol.
added gitignore
  • Loading branch information
universal committed May 20, 2008
1 parent 6d02357 commit d9fb3a5
Show file tree
Hide file tree
Showing 13 changed files with 20 additions and 289 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
log
tmp
*.log
*.output
*.sqlite3

7 changes: 4 additions & 3 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,16 @@
<head>
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<title><%= controller.controller_name %>: <%= controller.action_name %></title>
<%= stylesheet_link_tag 'scaffold' %>
<%= stylesheet_link_tag 'application' %>
<%- %w{active4d all_hallows_eve amy blackboard brilliance_black brilliance_dull cobalt dawn eiffel espresso_libre idle iplastic lazy mac_classic magicwb_amiga pastels_on_dark spacecadet sunburst twilight zenburnesque}.each do |theme| -%>
<%= require_syntax_css theme%>
<%- end -%>
<%= javascript_include_tag :defaults %>
</head>
<body>

<p style="color: green"><%= flash[:notice] %></p>
<% if flash[:notice] -%>
<p style="color: green"><%= flash[:notice] -%></p>
<% end -%>
<%= yield %>
<table>
<tfoot>
Expand Down
20 changes: 0 additions & 20 deletions app/views/layouts/pastes.html.erb

This file was deleted.

10 changes: 0 additions & 10 deletions app/views/pastes/_code.html.erb~

This file was deleted.

22 changes: 0 additions & 22 deletions app/views/pastes/_form.html.erb~

This file was deleted.

20 changes: 0 additions & 20 deletions app/views/pastes/edit.html.erb~

This file was deleted.

23 changes: 0 additions & 23 deletions app/views/pastes/index.html.erb~

This file was deleted.

13 changes: 0 additions & 13 deletions app/views/pastes/new.html.erb~

This file was deleted.

10 changes: 4 additions & 6 deletions app/views/pastes/show.html.erb
Original file line number Diff line number Diff line change
@@ -1,22 +1,20 @@
<table>
<thead>

<tr>
<th>Language: <%=h @paste.language %></th>
<th>Theme: <%= select_tag :themes, options_for_select(%w{active4d all_hallows_eve amy blackboard brilliance_black brilliance_dull cobalt dawn eiffel espresso_libre idle iplastic lazy mac_classic magicwb_amiga pastels_on_dark spacecadet sunburst twilight zenburnesque}), :onChange => "changeStyle(this.value)", :id => "theme_picker" %></th>
</tr>
</thead>
<tbody>
</tr>
<tr>
<td colspan="2">
<div id="code">
<%=c @paste.code, :syntax => @paste.language %>
</div>
<td colspan="2" id="code" style="width: auto;">
<%=c @paste.code.gsub(/\t/, ' '), :syntax => @paste.language %>
</td>
</tr>
<tr>
<td><%= link_to 'Edit', edit_paste_path(@paste) %></td>
<td><%= link_to 'Back', pastes_path %></td>
</tr>
</tbody>
</table>

Expand Down
26 changes: 0 additions & 26 deletions app/views/pastes/show.html.erb~

This file was deleted.

43 changes: 0 additions & 43 deletions config/routes.rb~

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,12 @@ table caption {text-align: left; text-transform: uppercase; padding-bottom: 10p

table thead th {background: #3A4856; padding: 15px 10px; color: #fff; text-align: left; font-weight: normal;}

table thead a {color: #FFFFFF; text-decoration: none; border-bottom: 1px solid #FFFFFF;}

table thead a:visited {color: #AFAFAF;}

table thead a:hover {color: #000;}

table tbody, table thead {border-left: 1px solid #EAECEE; border-right: 1px solid #EAECEE;}

table tbody {border-bottom: 1px solid #EAECEE;}
Expand Down
103 changes: 0 additions & 103 deletions public/stylesheets/scaffold.css~

This file was deleted.

0 comments on commit d9fb3a5

Please sign in to comment.