Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
Switch to a textarea
Browse files Browse the repository at this point in the history
  • Loading branch information
chadwhitacre committed Oct 17, 2016
1 parent a52f039 commit 69e9e58
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 4 deletions.
6 changes: 6 additions & 0 deletions scss/pages/fund-open-source.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#fund-open-source {
textarea {
width: 100%;
height: 200px;
}
}
3 changes: 1 addition & 2 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@
</script>
{% endif %}
</head>
{% set homepage = request.path.raw == '/' %}
<body id="{{ 'homepage' if homepage }}">
<body id="{{ page_id }}">

<div id="wrapper">
<div id="header" class="clearfix">
Expand Down
1 change: 1 addition & 0 deletions www/assets/gratipay.css.spt
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
@import "scss/pages/homepage";
@import "scss/pages/history";
@import "scss/pages/identities";
@import "scss/pages/fund-open-source";
@import "scss/pages/team";
@import "scss/pages/profile-edit";
@import "scss/pages/giving";
Expand Down
7 changes: 5 additions & 2 deletions www/fund-open-source/index.html.spt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ from collections import OrderedDict
[---]
title = _("Fund Open Source")
suppress_sidebar = True
page_id = 'fund-open-source'
[---]
{% extends "templates/base.html" %}
{% block head_early %}
Expand All @@ -26,11 +27,13 @@ suppress_sidebar = True

<h2>Step 1: Analyze Your Code</h2>

<p>{{ _("Paste the URL of your GitHub repo. We'll show you a report of all your open source dependencies (along with their licenses).") }}</p>
<p>{{ _("Copy and paste your <code>requirements.txt</code>, and we'll show you a report of all your open source dependencies, along with their licenses." | safe) }}</p>

<p>{{ _("Want to test it out? Use the <a href='https://raw.githubusercontent.com/rtfd/readthedocs.org/master/requirements/pip.txt'><code>requirements.txt</code> from Read the Docs.</a>"|safe) }}</p>

<form action="/fund-open-source/report" method="POST">
<input type="hidden" name="csrf_token" value="{{ csrf_token }}" />
<input type="text" value="https://github.com/gratipay/gratipay.com/">
<textarea name="requirements" autofocus></textarea>
<button style="selected larger">{{ _("Go") }}</button>
</form>
{% endblock %}
1 change: 1 addition & 0 deletions www/index.html.spt
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ for key, tab in tabs.items():
title = _("Teams")
suppress_sidebar = True
suppress_welcome = 'suppress-welcome' in request.cookie
page_id = 'homepage'
[---]
{% extends "templates/base.html" %}
{% block head_early %}
Expand Down

0 comments on commit 69e9e58

Please sign in to comment.