<commit_before>!!!
%html
  %head
    %title
      = @page_title ? @page_title + " - " : ""
      = @current_organisation ? @current_organisation.name : "One Click Orgs"

    %link{:href=>"/favicon.ico", :rel=>"shortcut icon"}        
    = stylesheet_link_tag 'one_click'
    = javascript_include_tag 'jquery', 'rails', 'application'
    = csrf_meta_tag
  %body
    %div#container
      - if current_user
        - if current_organisation.pending? 
          %div#overlay.pending
            %p
              The Association is currently in a draft state. When there at least three
              = link_to 'Founding Members', members_path
              and they are happy with the
              = link_to 'Draft Constitution', constitution_path
              = co.members.first.name
              can call a Founding Vote to create the Association.
            - if current_user.has_permission(:found_organisation_proposal)
              = form_tag(:controller => 'proposals', :action => 'propose_foundation') do
                = submit_tag "Hold the Founding Vote", :id => 'submit'
              %br.clear
        - if current_organisation.proposed?
          %div#overlay.proposed
            %p
              This organisation has been proposed for foundation. 
              Founding members can now vote until the end of the voting period.
        - if current_organisation.failed?
          %div#overlay.failed
            %p
              This organisation is inactive: the founding vote did not pass.
      %div.control_bar
        - if current_user
          %p
            %strong
              = link_to current_user.name, member_path(current_user)
          %p
            = link_to 'Edit your account', edit_member_path(current_user)
          %p
            = link_to 'Logout', member_session_path, :method => :delete
      %div#doc
        %div#hd
          %h1.header
            = link_to(@current_organisation.name, root_path)
          %p
            powered by
            = link_to 'One Click Orgs', 'http://www.oneclickorgs.com/'
        - if current_user
          - if current_organisation.pending?
            %ul#nav
              %li#navitem= link_to 'Settings', settings_path
              %li#navitem= link_to 'Constitution', constitution_path
              %li#navitem= link_to 'Members', members_path
          - elsif current_organisation.proposed?
            %ul#nav
              %li#navitem= link_to 'Dashboard', root_path
              %li#navitem= link_to 'Constitution', constitution_path
              %li#navitem= link_to 'Members', members_path
          - else
            %ul#nav
              %li#navitem= link_to 'Dashboard', root_path
              %li#navitem= link_to 'Settings', settings_path
              %li#navitem= link_to 'Constitution', constitution_path
              %li#navitem= link_to 'Members', members_path

        - if flash[:notice]
          %div#notice
            = flash[:notice]
        - if flash[:error]
          %div#error
            = flash[:error]
        
        %div#bd
          
          = yield<commit_msg>'Draft Constitution' in pending state nav.<commit_after>!!!
%html
  %head
    %title
      = @page_title ? @page_title + " - " : ""
      = @current_organisation ? @current_organisation.name : "One Click Orgs"

    %link{:href=>"/favicon.ico", :rel=>"shortcut icon"}        
    = stylesheet_link_tag 'one_click'
    = javascript_include_tag 'jquery', 'rails', 'application'
    = csrf_meta_tag
  %body
    %div#container
      - if current_user
        - if current_organisation.pending? 
          %div#overlay.pending
            %p
              The Association is currently in a draft state. When there at least three
              = link_to 'Founding Members', members_path
              and they are happy with the
              = link_to 'Draft Constitution', constitution_path
              = co.members.first.name
              can call a Founding Vote to create the Association.
            - if current_user.has_permission(:found_organisation_proposal)
              = form_tag(:controller => 'proposals', :action => 'propose_foundation') do
                = submit_tag "Hold the Founding Vote", :id => 'submit'
              %br.clear
        - if current_organisation.proposed?
          %div#overlay.proposed
            %p
              This organisation has been proposed for foundation. 
              Founding members can now vote until the end of the voting period.
        - if current_organisation.failed?
          %div#overlay.failed
            %p
              This organisation is inactive: the founding vote did not pass.
      %div.control_bar
        - if current_user
          %p
            %strong
              = link_to current_user.name, member_path(current_user)
          %p
            = link_to 'Edit your account', edit_member_path(current_user)
          %p
            = link_to 'Logout', member_session_path, :method => :delete
      %div#doc
        %div#hd
          %h1.header
            = link_to(@current_organisation.name, root_path)
          %p
            powered by
            = link_to 'One Click Orgs', 'http://www.oneclickorgs.com/'
        - if current_user
          - if current_organisation.pending?
            %ul#nav
              %li#navitem= link_to 'Settings', settings_path
              %li#navitem= link_to 'Draft Constitution', constitution_path
              %li#navitem= link_to 'Members', members_path
          - elsif current_organisation.proposed?
            %ul#nav
              %li#navitem= link_to 'Dashboard', root_path
              %li#navitem= link_to 'Constitution', constitution_path
              %li#navitem= link_to 'Members', members_path
          - else
            %ul#nav
              %li#navitem= link_to 'Dashboard', root_path
              %li#navitem= link_to 'Settings', settings_path
              %li#navitem= link_to 'Constitution', constitution_path
              %li#navitem= link_to 'Members', members_path

        - if flash[:notice]
          %div#notice
            = flash[:notice]
        - if flash[:error]
          %div#error
            = flash[:error]
        
        %div#bd
          
          = yield
{'fraction_non_alphanumeric': 0.09017842790548143, 'fraction_numerical': 0.00032149172158816913, 'mean_word_length': 1.8128390596745028, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4725313', 'n_tokens_mistral': 1723, 'n_tokens_neox': 1702, 'n_words': 427}