views/index.erb in gitauth-0.0.5.0 vs views/index.erb in gitauth-0.0.5.1
- old
+ new
@@ -2,11 +2,11 @@
<%= erb :clone_repo, :layout => false %>
<% end %>
<div class="section">
<h2>Repositories <a href="#" onclick="showForm('repo'); return false;" title="Add a new repository" id="add-repo-link">[+]</a></h2>
- <form id="add-repo" action="/repos" method="post" class="hidden">
+ <form id="add-repo" action="<%=u "/repos" %>" method="post" class="hidden">
<div class="row">
<label for="repo_name">Name:</label>
<input type="text" name="repo[name]" id="repo_name" />
</div>
<div class="row">
@@ -33,11 +33,11 @@
</ul>
</div>
<div class="section">
<h2>Users <a href="#" onclick="showForm('user'); return false;" title="Add a new user" id="add-user-link">[+]</a></h2>
- <form id="add-user" action="/users" method="post" class="hidden">
+ <form id="add-user" action="<%=u "/users" %>" method="post" class="hidden">
<div class="row">
<label for="user_name">Name:</label>
<input type="text" name="user[name]" id="user_name" />
</div>
<div class="row">
@@ -64,10 +64,10 @@
</ul>
</div>
<div class="section">
<h2>Groups <a href="#" onclick="showForm('group'); return false;" title="Add a new group" id="add-group-link">[+]</a></h2>
- <form id="add-group" action="/groups" method="post" class="hidden">
+ <form id="add-group" action="<%=u "/groups" %>" method="post" class="hidden">
<div class="row">
<label for="group_name">Name:</label>
<input type="text" name="group[name]" id="group_name" />
</div>
<div class="buttons">
\ No newline at end of file