summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan Sørensen <johan@johansorensen.com>2009-06-17 12:20:12 +0200
committerJohan Sørensen <johan@johansorensen.com>2009-06-17 12:21:24 +0200
commitaa9a7f28c3785590c0129d9cdf493b8115e9b12e (patch)
tree93968591866760db4b2ea0cb1ca9c4d05da89bf7
parent6e853c966a61b0e4b78a75ba3ed13e05a168f381 (diff)
downloadgitorious-mainline-outdated-aa9a7f28c3785590c0129d9cdf493b8115e9b12e.zip
gitorious-mainline-outdated-aa9a7f28c3785590c0129d9cdf493b8115e9b12e.tar.gz
gitorious-mainline-outdated-aa9a7f28c3785590c0129d9cdf493b8115e9b12e.tar.bz2
Added link to the repository hooks page from the "Edit repository" page
-rw-r--r--app/views/hooks/index.html.erb9
-rw-r--r--app/views/repositories/edit.html.erb1
-rw-r--r--config/locales/en.rb1
3 files changed, 11 insertions, 0 deletions
diff --git a/app/views/hooks/index.html.erb b/app/views/hooks/index.html.erb
index eabde40..4f8a538 100644
--- a/app/views/hooks/index.html.erb
+++ b/app/views/hooks/index.html.erb
@@ -43,6 +43,15 @@
<% end -%>
</table>
+<% help_box :left do -%>
+<p>
+ A <em>web hook</em> is a callback URL that Gitorious will post the contents
+ (such as the commits) of a push to, whenever something is pushed to this
+ repository. The contents and format is described
+ <a href="http://gitorious.org/gitorious/pages/WebHooks">here</a>.
+</p>
+<% end -%>
+
<% content_for :sidebar do -%>
<ul class="links">
<li class="new_hook">
diff --git a/app/views/repositories/edit.html.erb b/app/views/repositories/edit.html.erb
index 53424fe..09e6fb8 100644
--- a/app/views/repositories/edit.html.erb
+++ b/app/views/repositories/edit.html.erb
@@ -59,5 +59,6 @@
<% if @repository.can_be_deleted_by?(current_user) -%>
<li class="delete_repository"><%= link_to t("views.repos.btn_delete_repo"), repo_owner_path(@repository, [:confirm_delete, @repository.project, @repository]) -%></li>
<% end -%>
+ <li class="edit_hooks"><%= link_to t("views.repos.manage_hooks"), repo_owner_path(@repository, [@repository.project, @repository, :hooks]) -%></li>
</ul>
<% end -%> \ No newline at end of file
diff --git a/config/locales/en.rb b/config/locales/en.rb
index ed52d23..84a2387 100644
--- a/config/locales/en.rb
+++ b/config/locales/en.rb
@@ -362,6 +362,7 @@
:confirm_delete => "Please confirm deletion of {{repo}} in {{title}}",
:message_delete => "Once you press this button the repository will be deleted",
:btn_delete => "YES I am sure I want to delete this repository permanently",
+ :manage_hooks => "Manage repository hooks",
:page_title => "Repositories in {{repo}}",
:title => "Repositories",
:commits => "Commits",