Skip to content
This repository has been archived by the owner on Apr 26, 2022. It is now read-only.

Commit

Permalink
minor tweaks for layout, etc
Browse files Browse the repository at this point in the history
  • Loading branch information
jlapier committed Mar 8, 2012
1 parent 891107f commit f05a6cc
Show file tree
Hide file tree
Showing 16 changed files with 181 additions and 8 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -18,6 +18,7 @@ public/wiki_page_assets/
public/user_assets/ public/user_assets/
public/themes public/themes
public/images/favorite.png public/images/favorite.png
public/images/rrcp_logo.png
coverage/ coverage/
.rvmrc .rvmrc
public/files public/files
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/application_controller.rb
Expand Up @@ -27,7 +27,7 @@ class ApplicationController < ActionController::Base


private private
def broken_link def broken_link
if request.url =~ /(content_page_assets|.js)/ if request.url =~ /(content_page_assets|wiki_page_assets|user_assets|message_post_assets|.js|.css)/
render :status => 404 render :status => 404
else else
logger.info "Broken link: #{request.url}" logger.info "Broken link: #{request.url}"
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/content_pages_controller.rb
Expand Up @@ -48,7 +48,7 @@ def show
# GET /content_pages/new # GET /content_pages/new
# GET /content_pages/new.xml # GET /content_pages/new.xml
def new def new
@content_page = ContentPage.new @content_page = ContentPage.new :page_layout => "default"


respond_to do |format| respond_to do |format|
format.html # new.html.erb format.html # new.html.erb
Expand Down
4 changes: 2 additions & 2 deletions app/views/event_calendar/events/_form.html.erb
Expand Up @@ -28,7 +28,7 @@
</fieldset> </fieldset>
</li> </li>
<%= form.input :start_date, :required => false, :as => :string, <%= form.input :start_date, :required => false, :as => :string,
:input_html => { :value => @event.start_date.to_s(:american) } %> :input_html => { :value => @event.start_date ? @event.start_date.to_s(:american) : '' } %>
<li id="event_end_time_input" class="time optional"> <li id="event_end_time_input" class="time optional">
<input id="event_end_time_1i" type="hidden" value="<%= Date.current.year %>" name="event[end_time(1i)]"> <input id="event_end_time_1i" type="hidden" value="<%= Date.current.year %>" name="event[end_time(1i)]">
<fieldset> <fieldset>
Expand All @@ -52,7 +52,7 @@
</fieldset> </fieldset>
</li> </li>
<%= form.input :end_date, :required => false, :as => :string, <%= form.input :end_date, :required => false, :as => :string,
:input_html => { :value => @event.end_date.to_s(:american) } %> :input_html => { :value => @event.end_date ? @event.end_date.to_s(:american) : '' } %>
<%= form.input :timezone, :as => :time_zone, :priority_zones => /^(Eastern|Central|Mountain|Pacific) Time/ %> <%= form.input :timezone, :as => :time_zone, :priority_zones => /^(Eastern|Central|Mountain|Pacific) Time/ %>
<%= form.input :facilitators, :hint => 'eg Sally Resonant, DSM WRRC' %> <%= form.input :facilitators, :hint => 'eg Sally Resonant, DSM WRRC' %>
<%= form.input :presenters, :hint => 'eg Jane Doe, DSM WRRC' %> <%= form.input :presenters, :hint => 'eg Jane Doe, DSM WRRC' %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/layouts/application.html.erb
Expand Up @@ -13,7 +13,7 @@
<%= stylesheet_link_tag 'screen', :media => 'screen, projection' %> <%= stylesheet_link_tag 'screen', :media => 'screen, projection' %>
<% end -%> <% end -%>
<%= stylesheet_link_tag 'fullcalendar_changes', :media => 'screen, projection' %> <%= stylesheet_link_tag 'fullcalendar_changes', :media => 'screen, projection' %>
<%= stylesheet_link_tag "file_share/plupload/screen", :media => "screen, projection" %> <%= stylesheet_link_tag "plupload/screen", :media => "screen, projection" %>
<%= stylesheet_link_tag 'print', :media => 'print' %> <%= stylesheet_link_tag 'print', :media => 'print' %>


Expand Down
5 changes: 2 additions & 3 deletions app/views/themes/index.html.erb
Expand Up @@ -26,8 +26,7 @@
</div> </div>




<p class="admin_links"> <% content_for :admin_bar do %>
<%= link_to 'Site Administration', admin_site_settings_path %>
<!-- | <!-- |
<%= link_to 'Custom CSS', :controller => :themes, :action => :css_editor %> --> <%= link_to 'Custom CSS', :controller => :themes, :action => :css_editor %> -->
</p> <% end %>
Binary file added public/images/rrcp_logo.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/stylesheets/plupload/backgrounds.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/stylesheets/plupload/buttons-disabled.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/stylesheets/plupload/buttons.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/stylesheets/plupload/delete.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/stylesheets/plupload/done.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/stylesheets/plupload/error.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
172 changes: 172 additions & 0 deletions public/stylesheets/plupload/screen.css
@@ -0,0 +1,172 @@

/*
Plupload
------------------------------------------------------------------- */

.plupload_button {
display: -moz-inline-box; /* FF < 3*/
display: inline-block;
font: normal 12px sans-serif;
text-decoration: none;
color: #42454a;
border: 1px solid #bababa;
padding: 2px 8px 3px 20px;
margin-right: 4px;
background: #f3f3f3 url('buttons.png') no-repeat 0 center;
outline: 0;

/* Optional rounded corners for browsers that support it */
-moz-border-radius: 3px;
-khtml-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
}

.plupload_button:hover {
color: #000;
text-decoration: none;
}

.plupload_disabled, a.plupload_disabled:hover {
color: #737373;
border-color: #c5c5c5;
background: #ededed url('buttons-disabled.png') no-repeat 0 center;
cursor: default;
}

.plupload_add {
background-position: -181px center;
}

.plupload_wrapper {
font: normal 11px Verdana,sans-serif;
width: 100%;
}

.plupload_container {
padding: 8px;
background: url('transp50.png');
/*-moz-border-radius: 5px;*/
}

.plupload_header {background: #2A2C2E url('backgrounds.gif') repeat-x;}
.plupload_header_content {
background: url('backgrounds.gif') no-repeat 0 -317px;
min-height: 56px;
padding-left: 60px;
color: #FFF;
}
.plupload_header_title {
font: normal 18px sans-serif;
padding: 6px 0 3px;
}
.plupload_header_text {
font: normal 12px sans-serif;
}

.plupload_filelist {
margin: 0;
padding: 0;
list-style: none;
}

.plupload_scroll .plupload_filelist {
height: 185px;
background: #F5F5F5;
overflow-y: scroll;
}

.plupload_filelist li {
padding: 10px 8px;
background: #F5F5F5 url('backgrounds.gif') repeat-x 0 -156px;
border-bottom: 1px solid #DDD;
}

.plupload_filelist_header, .plupload_filelist_footer {
background: #DFDFDF;
padding: 8px 8px;
color: #42454A;
}
.plupload_filelist_header {
border-top: 1px solid #EEE;
border-bottom: 1px solid #CDCDCD;
}

.plupload_filelist_footer {border-top: 1px solid #FFF; height: 22px; line-height: 20px; vertical-align: middle;}
.plupload_file_name {float: left; overflow: hidden}
.plupload_file_status {color: #777;}
.plupload_file_status span {color: #42454A;}
.plupload_file_size, .plupload_file_status, .plupload_progress {
float: right;
width: 80px;
}
.plupload_file_size, .plupload_file_status, .plupload_file_action {text-align: right;}

.plupload_filelist .plupload_file_name {width: 205px}

.plupload_file_action {
float: right;
width: 16px;
height: 16px;
margin-left: 15px;
}

.plupload_file_action * {
display: none;
width: 16px;
height: 16px;
}

li.plupload_uploading {background: #ECF3DC url('backgrounds.gif') repeat-x 0 -238px;}
li.plupload_done {color:#AAA}

li.plupload_delete a {
background: url('delete.gif');
}

li.plupload_failed a {
background: url('error.gif');
cursor: default;
}

li.plupload_done a {
background: url('done.gif');
cursor: default;
}

.plupload_progress, .plupload_upload_status {
display: none;
}

.plupload_progress_container {
margin-top: 3px;
border: 1px solid #CCC;
background: #FFF;
padding: 1px;
}
.plupload_progress_bar {
width: 0px;
height: 7px;
background: #CDEB8B;
}

.plupload_scroll .plupload_filelist_header .plupload_file_action, .plupload_scroll .plupload_filelist_footer .plupload_file_action {
margin-right: 17px;
}

/* Floats */

.plupload_clear,.plupload_clearer {clear: both;}
.plupload_clearer, .plupload_progress_bar {
display: block;
font-size: 0;
line-height: 0;
}

li.plupload_droptext {
background: transparent;
text-align: center;
vertical-align: middle;
border: 0;
line-height: 165px;
}
Binary file added public/stylesheets/plupload/transp50.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions themes/page_layouts/no_header.html.erb
@@ -0,0 +1 @@
<%= page_body %>

0 comments on commit f05a6cc

Please sign in to comment.