anchor.diff:  
   <% if (!current_user.nil? && current_user.id == @album.user_id) || @album.ncc == 0 || @album.ncc == 2 %>
   
  -  <%= form_for @album, :url => {:action => 'add_photos'}, :remote => true, class: "btn btn-primary" do |f| %>
  +<%= form_for @album, :url => {:action => 'add_photos'}, :html => {:multipart => true, :id => "image-new-form"}, :remote => true, class: "btn btn-primary" do |f| %>
       <%= file_field_tag('album_photos_photo', multiple: true, name: "files[]") %>
       <div class="actions">
       <output id="submit_button"></output>
  -    <output id="bar"></output>
  +
  +	<!-- display upload progress -->
  +    <div class="hide" id="image-new-progress-message">
  +      画像の登録中です...
  +      <div class="progress progress-striped active">
  +        <div class="bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100"></div>
  +      </div>
  +    </div>
  +    <div class="alert alert-dismissable alert-danger hide" id="image-new-error-message">
  +      <button type="button" class="close" data-dismiss="alert">×</button>
  +      画像の登録に失敗しました。
  +    </div>
  +    <div class="alert alert-dismissable alert-success hide" id="image-new-success-message">
  +      <button type="button" class="close" data-dismiss="alert">×</button>
  +      画像の登録に成功しました。<%= link_to "ページを更新します。" %>
  +    </div>
  +
       <output id="list"></output>
  +
       </div>
     <% end %>
   
  
positive.code:                   f.lastModifiedDate.toLocaleDateString(), '</li>'
                   );
      }
      document.getElementById('bar').innerHTML = '<div id="uploading"><div id="progress" class="bar"><div id="progressbar">&nbsp;</div><div id="percents"></div></div></div>';
      document.getElementById('list').innerHTML = '<ul>' + output.join('') + '</ul>';
    }
    document.getElementById('album_photos_photo').addEventListener('change', handleFileSelect, false);
  
negative.code: <% if !current_user.nil? && @album.user_id == current_user.id %>
    <%= link_to 'Edit', edit_album_path(@album), class: "btn btn-link" %> 
  <% end %>
  
  <br />
  <ul class="snsb">
  