Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

handle static html files

  • Loading branch information...
commit bb4845f3d2b75dfbae06680c8c75e618e5dae6ec 1 parent ab6292a
@adamlogic authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 app/controllers/mockups_controller.rb
View
4 app/controllers/mockups_controller.rb
@@ -8,7 +8,7 @@ def index
@entries = []
@directories = ActiveSupport::OrderedHash.new
- Dir.glob File.join(Rails.root, 'app', 'views', 'mockups', '**', '[^_]*.html.*') do |template|
+ Dir.glob File.join(Rails.root, 'app', 'views', 'mockups', '**', '[^_]*.htm*') do |template|
parent_dir = File.dirname(template).split(/[\/]/).last
template_name = File.basename(template).split('.').first
@@ -37,7 +37,7 @@ def extract_layout(template_path)
filename_components = File.basename(located_files[0]).split('.')
- if filename_components[1] == 'html'
+ if filename_components.length < 4
true
else
filename_components[1]
Please sign in to comment.
Something went wrong with that request. Please try again.