mirror of
https://github.com/wahyd4/ocelots.git
synced 2026-08-13 15:06:12 +10:00
57 lines
2.1 KiB
Plaintext
57 lines
2.1 KiB
Plaintext
- content_for :menu_items do
|
|
li
|
|
= link_to 'add team', '#add_new', class: 'fancybox'
|
|
|
|
div id="add_new" style="display:none;"
|
|
p.lead Create a new team by specifying the team name and the unique URL.
|
|
= form_for @team, html: {class: 'form-horizontal'} do |form|
|
|
div.control-group
|
|
label.control-label for="team_name" Team Name
|
|
div.controls
|
|
= form.text_field :name
|
|
div.control-group
|
|
label.control-label for="team_slug" URL
|
|
div.controls
|
|
p http://iocelots.com/#{form.text_field :slug}
|
|
|
|
div.form-actions
|
|
= form.submit 'Create', class: 'btn'
|
|
|
|
- @memberships.each do |membership|
|
|
a href="/teams/#{membership.team_slug}"
|
|
div.hero-unit.highlight
|
|
div.row
|
|
div.span4
|
|
img src="/assets/team.png"
|
|
div.span4
|
|
h1 = membership.team_name
|
|
p = membership.team_description
|
|
div.span1
|
|
- if membership.pending?
|
|
= form_tag "/membership/approve" do
|
|
input type="hidden" name="id" value="#{membership.id}"
|
|
= submit_tag 'Approve', class: 'btn btn-primary btn-block'
|
|
= form_tag "/membership/leave" do
|
|
input type="hidden" name="id" value="#{membership.id}"
|
|
= submit_tag 'Leave', class: 'btn btn-danger btn-block'
|
|
div.span1 style="margin:60px 0 0 65px"
|
|
img style="float:left" src="assets/head.png"
|
|
h3 style="margin:-7px 0 0 50px;color:#333" = membership.team_people.count
|
|
div.clearfix
|
|
div style="margin-top:-30px"
|
|
h3 style="text-align:center" Viewable Teams
|
|
hr style="margin-top:-30px"
|
|
- current_person.viewable_teams.each do |team|
|
|
a href="/teams/#{team.slug}"
|
|
div.hero-unit.highlight.viewable-team
|
|
div.row
|
|
div.span4
|
|
img src="/assets/team.png"
|
|
div.span4
|
|
h1 = team.name
|
|
p = team.description
|
|
div.span1
|
|
div.span1 style="margin:60px 0 0 65px"
|
|
img style="float:left" src="assets/head.png"
|
|
h3 style="margin:-7px 0 0 50px;color:#333" = team.people.count
|