Created
April 3, 2011 16:28
-
-
Save Atalanta/900538 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:Javascript | |
$(document).ready(function() { | |
$("#environments #version").draggable({revert: true}); | |
}); | |
- colwidth = 95/@environments.count | |
%p= "There are " + @environments.count.to_s + " Environments available." | |
%style{ :type => 'text/css' } | |
:sass | |
column | |
:width #{colwidth}% | |
:display inline | |
:float left | |
:border-right-color #555 | |
:border-right-style dashed | |
:border-right-width thin | |
- @environments.each do |environment, version| | |
%column | |
#environments | |
#environments.title= environment | |
- version.each do |s| | |
#version | |
%p= "Version: " + s | |
#version.controls | |
%form(action='/' method='post') | |
%input(type='hidden' name='version' value=s) | |
%input(type='hidden' name='environment' value=environment) | |
%input(type='submit' class='button grey' value='smash') | |
%form(action='/promote' method='post') | |
%input(type='hidden' name='version' value=s) | |
%input(type='hidden' name='environment' value=environment) | |
%input(type='submit' class='button blue' value='promote') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment