forked from stillmaintained/stillmaintained
/
edit.haml
30 lines (23 loc) · 1.49 KB
/
edit.haml
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
.wrap
%h1 Adding your work
%h2= "Hi #{@user.login}, here's a list of every Github project you started."
%p If you have a project you don't want to have listed, just skip it. Also, you can always come back later and edit your project's states.
%form{:action => "/users/#{@user.id}", :method => 'post'}
- @projects.each do |project|
%fieldset
%h2
Is
%a{:href => "https://github.com/#{project.user}/#{project.name}"}= project.name
still being maintained?
%input{:type => 'radio', :name => "projects[#{project.user}][#{project.name}]", :value => 'maintained', :id => "#{project.name}_maintained", :checked => project.state == 'maintained'}
%label Yes.
%br
%input{:type => 'radio', :name => "projects[#{project.user}][#{project.name}]", :value => 'searching', :id => "#{project.name}_searching", :checked => project.state == 'searching'}
%label No, I'm looking for a new maintainer.
%br
%input{:type => 'radio', :name => "projects[#{project.user}][#{project.name}]", :value => 'abandoned', :id => "#{project.name}_abandoned", :checked => project.state == 'abandoned'}
%label No, the project is abandoned.
%br
%input{:type => 'radio', :name => "projects[#{project.user}][#{project.name}]", :value => 'hide', :id => "#{project.name}_hide", :checked => !project.visible }
%label Don't list this project
%input{:type => 'submit', :value => 'Submit', :class => 'small button'}