4084: Job display, log and buttons refresh using same mechanism as pipeline instances.
[arvados.git] / apps / workbench / app / views / users / _manage_repositories.html.erb
index 4f22ae9cd3a4e2e47d684133b953ea06730dd4fd..d20498f8c02bc1a932286d9e2f7bb73e690c8fec 100644 (file)
       </thead>
       <tbody>
         <% @my_repositories.andand.each do |repo| %>
+          <% writable = @repo_writable[repo.uuid] %>
           <tr>
             <td style="word-break:break-all;">
               <%= repo[:name] %>
             </td>
             <td>
-              <%= repo[:push_url] ? 'writable' : 'read-only' %>
+              <%= writable ? 'writable' : 'read-only' %>
             </td>
             <td style="word-break:break-all;">
-              <code><%= repo[:fetch_url] %></code>
+              <code><%= writable ? repo[:push_url] : repo[:fetch_url] %></code>
             </td>
           </tr>
         <% end %>