small fix in form

This commit is contained in:
Harry Bomrah 2015-12-26 22:15:41 +08:00
parent d2579437b9
commit 1ed9e43bb6
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@
<input type="hidden" name="video_dirname" id="video_file_temp_dir" />
<input type="hidden" name="video_filename" id="video_file_temp_name" />
<a href="#videoUploader" role="button" class="btn btn-info" data-toggle="modal">Upload Video</a>
<label id="video_file_name"><%= File.basename(@vlog.video.file.path) %></label>
<label id="video_file_name"><%= File.basename(@vlog.video.file.path) if !@vlog.new_record? %></label>
</div>
</div>
<div class="control-group video <%= @vlog.type == "upload" ? "" : "hide" %>" for="upload">