Skip to content
Browse files

Avoiding error if no @languages specified

  • Loading branch information...
1 parent f6a82a4 commit e9007013a4d36d230c86aa530736f36b42e5e467 @grundprinzip committed Nov 13, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 views/header.erb
View
2 views/header.erb
@@ -25,9 +25,11 @@
<link type="text/css" href="<%= @asset_path %>css/theme/ui.all.css" media="screen" rel="stylesheet" />
<link type="text/css" href="<%= @asset_path %>css/sh_style.css" rel="stylesheet" >
+<% if @languages %>
<% @languages.each do |l| %>
<script type="text/javascript" src="<%= @asset_path %>js/<%= l %>"></script>
<% end %>
+<% end %>
<% css_files.each do |css_file| %>
<link rel="stylesheet" href="file/<%= css_file %>" type="text/css"/>

0 comments on commit e900701

Please sign in to comment.
Something went wrong with that request. Please try again.