Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Move header content out of layout

The content about adding gem sources doesn't make much sense
on the upload page, especially considering that it gives an
incorrect gem source URL.
  • Loading branch information...
commit da55251acad0323ac955798a8e05d135ca53cf38 1 parent 59d573d
@jballanc jballanc authored
Showing with 12 additions and 8 deletions.
  1. +9 −0 views/index.erb
  2. +0 −8 views/layout.erb
  3. +3 −0  views/upload.erb
View
9 views/index.erb
@@ -1,3 +1,12 @@
+<p>
+<small>If you did not need any credentials to get to this page</small>
+ <pre><code>gem sources -a <%= url "/" %></code></pre>
+<small>If you needed some credentials to get to this page</small>
+ <pre><code>gem sources -a <%= url.to_s.gsub('://','://username:password@') %></code></pre>
+<small>and then ...</small>
+ <pre><code>gem install geminabox<br />gem inabox [gemfile]</code></pre>
+</p>
+
<% if @gems.any? %>
<a href="<%= url("/upload") %>">Upload Another Gem</a>
View
8 views/layout.erb
@@ -8,14 +8,6 @@
<body>
<div id="content">
<h1>Gem in a Box</h1>
- <p>
- <small>If you did not need any credentials to get to this page</small>
- <pre><code>gem sources -a <%= url "/" %></code></pre>
- <small>If you needed some credentials to get to this page</small>
- <pre><code>gem sources -a <%= url.to_s.gsub('://','://username:password@') %></code></pre>
- <small>and then ...</small>
- <pre><code>gem install geminabox<br />gem inabox [gemfile]</code></pre>
- </p>
<%= yield %>
</div>
<script type="text/javascript" src="<%= url "/jquery.js" %>"></script>
View
3  views/upload.erb
@@ -1,3 +1,6 @@
+<p>
+<small>Choose a gem file to upload ...</small>
+</p>
<%= @error %>
<form method="POST" enctype="multipart/form-data">
<input type="file" name="file">
Please sign in to comment.
Something went wrong with that request. Please try again.