Skip to content

Commit

Permalink
[copycopter#4] Improve new project flow
Browse files Browse the repository at this point in the history
* Add HTTP Basic auth explanation.
* Add config.host option to project blank slate.
  • Loading branch information
Dan Croak committed Mar 14, 2012
1 parent f78e94c commit 5ebdcc4
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 12 deletions.
1 change: 1 addition & 0 deletions app/views/projects/_copycopter.rb.erb
@@ -1,3 +1,4 @@
CopycopterClient.configure do |config|
config.api_key = '<%= project.api_key %>'
config.host = 'your-copycopter-server.herokuapp.com'
end
7 changes: 7 additions & 0 deletions app/views/projects/_form.html.erb
@@ -1,5 +1,12 @@
<%= form.inputs do %>
<%= form.input :name %>

<p>
Set the
<a href='http://www.w3.org/Protocols/HTTP/1.0/spec.html'>HTTP Basic Auth</a>
username and password for this project's authentication:
</p>

<%= form.input :username %>
<%= form.input :password %>
Expand Down
8 changes: 3 additions & 5 deletions public/stylesheets/application.css
Expand Up @@ -1040,13 +1040,11 @@ div#ground {
float: left;
font-family: "Andale Mono", "Lucida Console", "Courier New", Courier, monospace; }

#project_name_input {
#new_project #project_name_input {
border-bottom: 1px solid #ABC2C9;
padding-bottom: 20px; }

#project_users_input {
border-top: 1px solid #ABC2C9;
padding-top: 20px; }
#new_project p {
margin: 20px 0; }

.installation_instructions {
padding: 30px;
Expand Down
15 changes: 8 additions & 7 deletions public/stylesheets/sass/_projects.scss
Expand Up @@ -17,14 +17,15 @@
}
}

#project_name_input {
border-bottom: 1px solid #ABC2C9;
padding-bottom: 20px;
}
#new_project {
#project_name_input {
border-bottom: 1px solid #ABC2C9;
padding-bottom: 20px;
}

#project_users_input {
border-top: 1px solid #ABC2C9;
padding-top: 20px;
p {
margin: 20px 0;
}
}

.installation_instructions {
Expand Down

0 comments on commit 5ebdcc4

Please sign in to comment.