diff --git a/swh/web/ui/static/css/style.css b/swh/web/ui/static/css/style.css index bc200b89..3aa8b503 100644 --- a/swh/web/ui/static/css/style.css +++ b/swh/web/ui/static/css/style.css @@ -1,66 +1,69 @@ /* version: 0.1 date: 21/09/15 author: swh email: swh website: softwareheritage.org version history: /style.css */ body { font-family: sans-serif; background: #eee; } a, h1, h2 { color: #377ba8; } h1, h2 { font-family: 'Georgia', serif; margin: 0; } h1 { border-bottom: 2px solid #eee; } h2 { font-size: 1.2em; } .page { margin: 2em auto; width: 35em; border: 5px solid #ccc; padding: 0.8em; background: white; } .entries { list-style: none; margin: 0; padding: 0; } .entries li { margin: 0.8em 1.2em; } .entries li h2 { margin-left: -1em; } .add-entry { font-size: 0.9em; border-bottom: 1px solid #ccc; } .add-entry dl { font-weight: bold; } .metanav { text-align: right; font-size: 0.8em; padding: 0.3em; margin-bottom: 1em; background: #fafafa; } .flash { background: #cee5F5; padding: 0.5em; border: 1px solid #aacbe2; } .error { background: #f0d6d6; padding: 0.5em; } .file-found { color: #23BA49; } .file-notfound { color: #FF4747; } -/* Bootstrap custom styling */ +/* Bootstrap custom styling to correctly render multiple + * form-controls in an input-group: + * github.com/twbs/bootstrap/issues/12732 */ + .input-group-field { display: table-cell; vertical-align: middle; border-radius:4px; min-width:1%; white-space: nowrap; } .input-group-field .form-control { border-radius: inherit !important; } .input-group-field:not(:first-child):not(:last-child) { border-radius:0; } .input-group-field:not(:first-child):not(:last-child) .form-control { border-left-width: 0; border-right-width: 0; } .input-group-field:last-child { border-top-left-radius:0; border-bottom-left-radius:0; } .input-group > span:not(:last-child) > button { border-radius: 0; } .multi-input-group > .input-group-btn { vertical-align: bottom; padding: 0; } \ No newline at end of file diff --git a/swh/web/ui/templates/browse.html b/swh/web/ui/templates/browse.html index dafce151..776a2b93 100644 --- a/swh/web/ui/templates/browse.html +++ b/swh/web/ui/templates/browse.html @@ -1,56 +1,56 @@ {% extends "layout.html" %} {% block title %}Browse{% endblock %} {% block content %}
You can refer to a content (i.e. a file that we have in our database) as its SHA1 or SHA256 checksum. If you have files to input, you can drag and drop them below to have their hashes calculated and searched in SWH. Files with the same checksum will automatically be ignored.
{% include 'includes/search-form.html' %}
{% include 'includes/home-revision.html' %}
{% include 'includes/home-origin.html' %}
{% include 'includes/home-directory.html' %}
{% endblock %} diff --git a/swh/web/ui/templates/home.html b/swh/web/ui/templates/home.html deleted file mode 100644 index 2f95f470..00000000 --- a/swh/web/ui/templates/home.html +++ /dev/null @@ -1,12 +0,0 @@ -{% extends "layout.html" %} -{% block title %}Home{% endblock %} -{% block content %} - - - -{% endblock %} diff --git a/swh/web/ui/templates/layout.html b/swh/web/ui/templates/layout.html index 20973938..1ae30e91 100644 --- a/swh/web/ui/templates/layout.html +++ b/swh/web/ui/templates/layout.html @@ -1,57 +1,61 @@ {% block title %}{% endblock %} - The Software Heritage Archive

{{ self.title() }}

{% with messages = get_flashed_messages(with_categories=true) %} {% if messages %}
{% for category, message in messages %} {% endfor %}
{% endif %} {% endwith %}
{% block content %}{% endblock %}