-<%= submit_tag((@repository.nil? || @repository.new_record?) ? l(:button_create) : l(:button_save), :disabled => @repository.nil?) %>
+<%= submit_tag(l(:button_save), :onclick => remote_function(:url => { :controller => 'repositories', :action => 'edit', :id => @project }, :method => :get, :with => "Form.serialize(this.form)")) %>
<% end %>
diff -r 861eb230b8fe -r 93b4cfd3aaaa app/views/users/edit.rhtml
--- a/app/views/users/edit.rhtml Wed Mar 23 11:31:44 2011 +0000
+++ b/app/views/users/edit.rhtml Mon Mar 28 17:30:04 2011 +0100
@@ -8,3 +8,4 @@
<%= render_tabs user_settings_tabs %>
<% html_title(l(:label_user), @user.login, l(:label_administration)) -%>
+
diff -r 861eb230b8fe -r 93b4cfd3aaaa config/locales/en-GB.yml
--- a/config/locales/en-GB.yml Wed Mar 23 11:31:44 2011 +0000
+++ b/config/locales/en-GB.yml Mon Mar 28 17:30:04 2011 +0100
@@ -296,6 +296,9 @@
field_group_by: Group results by
field_sharing: Sharing
+ setting_external_repository: "In the case you wish to follow an external repository"
+ setting_external_repository_url: "The external repository URL"
+ label_repository_external_url: "External rep URL"
setting_app_title: Application title
setting_app_subtitle: Application subtitle
setting_welcome_text: Welcome text
@@ -619,6 +622,7 @@
label_not_contains: doesn't contain
label_day_plural: days
label_repository: Repository
+ label_is_external_repository: External?
label_repository_plural: Repositories
label_browse: Browse
label_modification: "{{count}} change"
@@ -900,6 +904,9 @@
text_own_membership_delete_confirmation: "You are about to remove some or all of your permissions and may no longer be able to edit this project after that.\nAre you sure you want to continue?"
text_settings_repo_creation: The repository for a project should be set up automatically within a few minutes of the project being created. You should not have to adjust any settings here; please check again in ten minutes.
+ text_settings_repo_is_internal: The repository for this project is an internal Mercurial Repository, hosted by SoundSoftware.ac.uk.
+ text_settings_repo_is_external: You are tracking an external repository, with a mirror Mercurial repository hosted by SoundSoftware.ac.uk.
+
default_role_manager: Manager
default_role_developer: Developer
default_role_reporter: Reporter
@@ -964,4 +971,8 @@
label_developer_description: Can commit to repository and carry out most project editing tasks
label_reporter_description: Can submit bug reports; has read access for private projects
- label_set_role_plural: Choose roles for new member
\ No newline at end of file
+ label_set_role_plural: Choose roles for new member
+ notice_added_to_project: 'You have been added to the project "{{project_name}}".'
+ notice_project_homepage: "You can visit the project using the following link: {{project_url}}"
+ mail_subject_added_to_project: "You've been added to a project on {{value}}"
+
\ No newline at end of file
diff -r 861eb230b8fe -r 93b4cfd3aaaa config/locales/en.yml
--- a/config/locales/en.yml Wed Mar 23 11:31:44 2011 +0000
+++ b/config/locales/en.yml Mon Mar 28 17:30:04 2011 +0100
@@ -305,7 +305,10 @@
field_assigned_to_role: "Assignee's role"
field_text: Text field
field_visible: Visible
-
+
+ setting_external_repository: "In the case you wish to follow an external repository"
+ setting_external_repository_url: "The external repository URL"
+ label_repository_external_url: "External rep URL"
setting_tipoftheday_text: Tip of the Day
setting_notifications_text: Notifications
field_terms_and_conditions: 'Terms and Conditions:'
@@ -631,6 +634,7 @@
label_not_contains: doesn't contain
label_day_plural: days
label_repository: Repository
+ label_is_external_repository: External?
label_repository_plural: Repositories
label_browse: Browse
label_modification: "{{count}} change"
@@ -924,8 +928,12 @@
text_own_membership_delete_confirmation: "You are about to remove some or all of your permissions and may no longer be able to edit this project after that.\nAre you sure you want to continue?"
text_zoom_in: Zoom in
text_zoom_out: Zoom out
+ text_files_active_change: Click the star to switch active status for a download on or off. Active files will be shown more prominently in the download page.
text_settings_repo_creation: The repository for a project should be set up automatically within a few minutes of the project being created. You should not have to adjust any settings here. Please check again in ten minutes, and contact us if there is any problem.
- text_files_active_change: Click the star to switch active status for a download on or off. Active files will be shown more prominently in the download page.
+ text_settings_repo_is_internal: The repository for this project is an internal Mercurial Repository, hosted by SoundSoftware.ac.uk.
+ text_settings_repo_is_external: You are tracking an external repository, with a mirror Mercurial repository hosted by SoundSoftware.ac.uk.
+
+
default_role_manager: Manager
default_role_developer: Developer
@@ -960,3 +968,11 @@
label_set_role_plural: Choose roles for new member
+ label_manager_description: All powers including adding and removing members and adjusting project settings
+ label_developer_description: Can commit to repository and carry out most project editing tasks
+ label_reporter_description: Can submit bug reports; has read access for private projects
+
+ label_set_role_plural: Choose roles for new member
+ notice_added_to_project: 'You have been added to the project "{{project_name}}".'
+ notice_project_homepage: "You can visit the project using the following link: {{project_url}}"
+ mail_subject_added_to_project: "You've been added to a project on {{value}}"
diff -r 861eb230b8fe -r 93b4cfd3aaaa db/migrate/20110207142856_add_ext_rep_to_repositories.rb
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/db/migrate/20110207142856_add_ext_rep_to_repositories.rb Mon Mar 28 17:30:04 2011 +0100
@@ -0,0 +1,11 @@
+class AddExtRepToRepositories < ActiveRecord::Migration
+ def self.up
+ add_column :repositories, :is_external, :bool
+ add_column :repositories, :external_url, :string
+ end
+
+ def self.down
+ remove_column :repositories, :is_external
+ remove_column :repositories, :external_url
+ end
+end
diff -r 861eb230b8fe -r 93b4cfd3aaaa public/javascripts/repository.js
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/public/javascripts/repository.js Mon Mar 28 17:30:04 2011 +0100
@@ -0,0 +1,7 @@
+function toggle_ext_url(){
+ if($('repository_is_external').checked)
+ $('repository_external_url').enable();
+ else
+ $('repository_external_url').disable();
+}
+
diff -r 861eb230b8fe -r 93b4cfd3aaaa public/javascripts/ssamr_registration.js
--- a/public/javascripts/ssamr_registration.js Wed Mar 23 11:31:44 2011 +0000
+++ b/public/javascripts/ssamr_registration.js Mon Mar 28 17:30:04 2011 +0100
@@ -4,13 +4,12 @@
/* institution related functions */
Event.observe(window, 'load',
- function() {
-
+ function() {
if(!$('ssamr_user_details_institution_type_true').checked && $('ssamr_user_details_institution_type_true').checked){
- $('ssamr_user_details_other_institution').disable();
- $('ssamr_user_details_institution_id').enable();
- $('ssamr_user_details_institution_type_true').checked = true;
- $('ssamr_user_details_institution_type_false').checked = false;
+ $('ssamr_user_details_other_institution').disable();
+ $('ssamr_user_details_institution_id').enable();
+ $('ssamr_user_details_institution_type_true').checked = true;
+ $('ssamr_user_details_institution_type_false').checked = false;
}
}
);