diff --git a/lib/views/alaveteli_pro/pages/_legal.html.erb b/lib/views/alaveteli_pro/pages/_legal.html.erb index 29af7aa7..2a543a68 100644 --- a/lib/views/alaveteli_pro/pages/_legal.html.erb +++ b/lib/views/alaveteli_pro/pages/_legal.html.erb @@ -38,6 +38,12 @@ Usage +

+ Commercial and for-profit use of WhatDoTheyKnow requires a + <%= link_to 'WhatDoTheyKnow Pro', account_request_index_path %> + subscription. +

+

We reserve the right to block, without warning, usage which violates any of our House Rules. diff --git a/lib/views/help/house_rules.html.erb b/lib/views/help/house_rules.html.erb index b6c6f5ee..77e6170a 100644 --- a/lib/views/help/house_rules.html.erb +++ b/lib/views/help/house_rules.html.erb @@ -22,7 +22,8 @@ guidance on this type of request.

  • Don't use WhatDoTheyKnow to ask for other people's personal information. Don't include this type of information in requests, comments or follow-ups, unless it's fair to do so.
  • -
  • Don't try to get around the actions of site administrators. For example, don't make new accounts to avoid a ban or limits on how many requests you can make. Don't repost things you know moderators have removed.
  • +
  • Don't try to get around the site limits or actions of site administrators. For example, don't make new accounts to avoid a ban or limits on how many requests you can make. Don't repost things you know moderators have removed.
  • +
  • Commercial and for-profit use requires a <%= link_to 'WhatDoTheyKnow Pro', account_request_index_path %> subscription.
  • If you break these rules, you could be banned from the site. We may also remove your requests or annotations. We'll usually contact you first to give advice on how to use the service better.

    diff --git a/lib/views/user/_signup.html.erb b/lib/views/user/_signup.html.erb new file mode 100644 index 00000000..7d483f4b --- /dev/null +++ b/lib/views/user/_signup.html.erb @@ -0,0 +1,78 @@ +
    + <%= form_tag signup_path, id: 'signup_form' do %> + <%= foi_error_messages_for :user_signup %> + +

    + + + <%= text_field 'user_signup', 'name', size: 20, tabindex: 10, autocomplete: 'off' %> +

    + +
    + <%= _('Your name will appear publicly ' \ + '(why?) on this website and in search ' \ + 'engines. Thinking of using a ' \ + 'pseudonym?', + why_url: help_privacy_path(anchor: 'public_request').html_safe, + help_url: help_privacy_path(anchor: 'real_name').html_safe) %> +
    + +

    + + + <%= text_field 'user_signup', 'email', size: 20, tabindex: 20 %> +

    + +
    + <%= _('We will not reveal your email address to anybody unless ' \ + 'you or the law tell us to.', + url: help_privacy_path) %> +
    + +

    + + + <%= password_field 'user_signup', 'password', size: 15, tabindex: 30, autocomplete: 'off' %> +

    + +
    + <%= _('12 characters minimum. 72 characters maximum.') %> +
    + +

    + + + <%= password_field 'user_signup', 'password_confirmation', size: 15, tabindex: 40, autocomplete: 'off' %> +

    + + <% if @request_from_foreign_country %> + <%= recaptcha_tags %> + <% end %> + +
    + <%= hidden_field_tag 'token', params[:token], id: 'signup_token' %> + <%= hidden_field_tag :modal, params[:modal], id: 'signup_modal' %> + + <%= submit_tag _('Sign up'), + tabindex: 50, + data: { disable_with: _('Sending...') } %> +
    + +
    + <%= _('By signing up you agree to our ' \ + 'house rules. Commercial and ' \ + 'for-profit use requires a ' \ + 'WhatDoTheyKnow Pro subscription.', + house_rules_url: help_house_rules_path, + pro_url: account_request_index_path) %> +
    + <% end %> +
    diff --git a/lib/views/user/rate_limited.html.erb b/lib/views/user/rate_limited.html.erb new file mode 100644 index 00000000..5d89db2c --- /dev/null +++ b/lib/views/user/rate_limited.html.erb @@ -0,0 +1,50 @@ +<% @title = _('Too many requests') %> + +

    <%= @title %>

    + +

    + <%= _('You have hit the rate limit on new requests. Users are ordinarily ' \ + 'limited to {{max_requests_per_user_per_day}} requests in any ' \ + 'rolling 24-hour period. You will be able to make another request ' \ + 'in {{can_make_another_request}}.', + max_requests_per_user_per_day: AlaveteliConfiguration.max_requests_per_user_per_day, + can_make_another_request: distance_of_time_in_words(Time.zone.now, @next_request_permitted_at)) %> +

    + +

    + <%= _('There is a limit on the number of requests you can make in a day, ' \ + 'because we don’t want public authorities to be bombarded with ' \ + 'large numbers of inappropriate requests. If you feel you have a ' \ + 'good reason to ask for the limit to be lifted in your case, ' \ + 'please get in touch.', + help_contact_path: help_contact_path) %> +

    + +<% if feature_enabled?(:alaveteli_pro) %> +

    + <%= _('Journalist, Campaigner or Researcher? ' \ + '{{pro_site_link}} is an all-in-one FOI toolkit including ' \ + 'everything you need to keep on top of complex FOI-driven ' \ + 'investigations.', + pro_site_link: link_to(pro_site_name, account_request_index_path)) %> +

    + +

    + <%= _('Commercial and for-profit use requires a ' \ + '{{pro_site_link}} subscription.', + pro_site_link: link_to(pro_site_name, account_request_index_path)) %> +

    +<% end %> + +<% if @info_request %> +

    + <%= _('Here is the message you wrote, in case you would like to copy ' \ + 'the text and save it for later.') %> +

    + +
    +
    + <%= @info_request.outgoing_messages[0].get_body_for_html_display %> +
    +
    +<% end %>