public
Description: Don't mind this, go to http://github.com/integrity/integrity
Homepage: http://integrityapp.com
Clone URL: git://github.com/foca/integrity.git
sr (author)
Mon Mar 30 07:15:52 -0700 2009
commit  a27620ec4423302b078c4902dd73c79ff537a971
tree    9a056360b45003e30485031e826bc42253682f1b
parent  90564a46ca93fdaec25e4d263b39460c69477fbd
integrity / views / new.haml
100644 51 lines (41 sloc) 2.225 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
%form{ :method => "post", :action => (@project.new_record? ? root_path("/") : project_path(@project)) }
  - unless @project.new_record?
    .hidden
      %input{ :name => "_method", :type => "hidden", :value => "put" }
 
  %p.required{ :class => error_class(@project, :name) }
    %label{ :for => "project_name" }<
      &== Name #{errors_on @project, :name}
    %input.text#project_name{ :name => "project_data[name]", :type => "text", :value => h(@project.name) }
 
  %p.required{ :class => error_class(@project, :uri) }
    %label{ :for => "project_repository" }<
      &== Git repository #{errors_on @project, :uri}
    %input.text#project_repository{ :name => "project_data[uri]", :type => "text", :value => h(@project.uri) }
 
  %p.normal{ :class => error_class(@project, :branch) }
    %label{ :for => "project_branch" }<
      &== Branch to track #{errors_on @project, :branch}
    %input.text#project_branch{ :name => "project_data[branch]", :type => "text", :value => "master", :value => h(@project.branch) }
 
  %p.normal{ :class => error_class(@project, :command) }
    %label{ :for => "project_build_script" }
      &== Build script #{errors_on @project, :command}
    %textarea#project_build_script{ :name => "project_data[command]", :cols => 40, :rows => 2 }
      &== #{@project.command.to_s}
 
  %p.normal.checkbox
    %label{ :for => "project_public" } Public project
    %input.hidden{ :name => "project_data[public]", :value => "0", :type => "hidden" }
    %input.checkbox#project_public{ checkbox("project_data[public]", @project.public?) }
 
  - notifier_form
 
  %p.submit
    %button.positive{ :type => "submit" }= @project.new_record? ? "Create Project" : "Update Project"
 
- unless @project.new_record?
  %h2 Push URL
  %p
    You can use this Push URL with your GitHub project to enable automated continuous integration.
  %p
    %code#push_url= push_url_for(@project)
 
  %form{ :method => "post", :action => project_path(@project) }
    .hidden
      %input{ :name => "_method", :type => "hidden", :value => "delete" }
    %h2 Delete this project
    %p.submit.destroy
      This will delete the project and all the builds in the system
      %button.negative{ :type => "submit" } Yes, I'm sure, nuke it