mirror of
https://github.com/minetest/contentdb.git
synced 2025-01-25 07:21:31 +01:00
Fix .box spacing issues
This commit is contained in:
parent
4841c66602
commit
5b056e8aab
@ -32,7 +32,7 @@ a:hover {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.box .box-body {
|
.box .box-body {
|
||||||
padding: 1em;
|
padding: 1em !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
// .box form {
|
// .box form {
|
||||||
|
@ -10,7 +10,7 @@ Sign in
|
|||||||
{% from "flask_user/_macros.html" import render_field, render_checkbox_field, render_submit_field %}
|
{% from "flask_user/_macros.html" import render_field, render_checkbox_field, render_submit_field %}
|
||||||
<h2>{%trans%}Sign in{%endtrans%}</h2>
|
<h2>{%trans%}Sign in{%endtrans%}</h2>
|
||||||
|
|
||||||
<form action="" method="POST" class="form" role="form" class="box-body">
|
<form action="" method="POST" class="form box-body" role="form">
|
||||||
<a href="{{ url_for('github_signin_page') }}">GitHub</a>
|
<a href="{{ url_for('github_signin_page') }}">GitHub</a>
|
||||||
|
|
||||||
|
|
||||||
@ -46,25 +46,24 @@ Sign in
|
|||||||
<a href="{{ url_for('user.forgot_password') }}" tabindex='195'>
|
<a href="{{ url_for('user.forgot_password') }}" tabindex='195'>
|
||||||
{%trans%}Forgot your Password?{%endtrans%}</a>
|
{%trans%}Forgot your Password?{%endtrans%}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
{{ field(class_='form-control', tabindex=120) }}
|
|
||||||
{% if field.errors %}
|
|
||||||
{% for e in field.errors %}
|
|
||||||
<p class="help-block">{{ e }}</p>
|
|
||||||
{% endfor %}
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
</div>
|
||||||
|
{{ field(class_='form-control', tabindex=120) }}
|
||||||
{# Remember me #}
|
{% if field.errors %}
|
||||||
{% if user_manager.enable_remember_me %}
|
{% for e in field.errors %}
|
||||||
{{ render_checkbox_field(login_form.remember_me, tabindex=130) }}
|
<p class="help-block">{{ e }}</p>
|
||||||
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
|
||||||
{# Submit button #}
|
{# Remember me #}
|
||||||
{{ render_submit_field(form.submit, tabindex=180) }}
|
{% if user_manager.enable_remember_me %}
|
||||||
</form>
|
{{ render_checkbox_field(login_form.remember_me, tabindex=130) }}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{# Submit button #}
|
||||||
|
{{ render_submit_field(form.submit, tabindex=180) }}
|
||||||
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="right">
|
<div class="right">
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
{% block container %}
|
{% block container %}
|
||||||
<main>
|
<main>
|
||||||
<div class="box box_grey">
|
<div class="box box_grey">
|
||||||
|
<!-- <h2>{{ self.title() }}</h2> -->
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -40,45 +40,48 @@
|
|||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<aside class="asideright box box_grey">
|
<aside class="asideright box box_grey">
|
||||||
<table>
|
<h3>Details</h3>
|
||||||
<tr>
|
<div class="box-body">
|
||||||
<td>Name</td>
|
<table>
|
||||||
<td>{{ package.name }}</td>
|
<tr>
|
||||||
</tr>
|
<td>Name</td>
|
||||||
<tr>
|
<td>{{ package.name }}</td>
|
||||||
<td>Author</td>
|
</tr>
|
||||||
<td class="{{ package.author.rank }}">
|
<tr>
|
||||||
<a href="{{ url_for('user_profile_page', username=package.author.username) }}">
|
<td>Author</td>
|
||||||
{{ package.author.display_name }}
|
<td class="{{ package.author.rank }}">
|
||||||
</a>
|
<a href="{{ url_for('user_profile_page', username=package.author.username) }}">
|
||||||
</td>
|
{{ package.author.display_name }}
|
||||||
</tr>
|
</a>
|
||||||
<tr>
|
</td>
|
||||||
<td>Type</td>
|
</tr>
|
||||||
<td>{{ package.type.value }}</td>
|
<tr>
|
||||||
</tr>
|
<td>Type</td>
|
||||||
<tr>
|
<td>{{ package.type.value }}</td>
|
||||||
<td>License</td>
|
</tr>
|
||||||
<td>{{ package.license.name }}</td>
|
<tr>
|
||||||
</tr>
|
<td>License</td>
|
||||||
</table>
|
<td>{{ package.license.name }}</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
<ul class="buttonset linedbuttonset">
|
<ul class="buttonset linedbuttonset">
|
||||||
{% if package.getDownloadRelease() %}<li><a href="{{ package.getDownloadURL() }}">Download</a></li>{% endif %}
|
{% if package.getDownloadRelease() %}<li><a href="{{ package.getDownloadURL() }}">Download</a></li>{% endif %}
|
||||||
{% if package.repo %}<li><a href="{{ package.repo }}">View Source</a></li>{% endif %}
|
{% if package.repo %}<li><a href="{{ package.repo }}">View Source</a></li>{% endif %}
|
||||||
{% if package.forums %}<li><a href="https://forum.minetest.net/viewtopic.php?t={{ package.forums }}">Forums</a></li>{% endif %}
|
{% if package.forums %}<li><a href="https://forum.minetest.net/viewtopic.php?t={{ package.forums }}">Forums</a></li>{% endif %}
|
||||||
{% if package.issueTracker %}<li><a href="{{ package.issueTracker }}">Issue Tracker</a></li>{% endif %}
|
{% if package.issueTracker %}<li><a href="{{ package.issueTracker }}">Issue Tracker</a></li>{% endif %}
|
||||||
{% if package.website %}<li><a href="{{ package.website }}">Website</a></li>{% endif %}
|
{% if package.website %}<li><a href="{{ package.website }}">Website</a></li>{% endif %}
|
||||||
{% if package.checkPerm(current_user, "EDIT_PACKAGE") %}
|
{% if package.checkPerm(current_user, "EDIT_PACKAGE") %}
|
||||||
<li><a href="{{ package.getEditURL() }}">Edit</a></li>
|
<li><a href="{{ package.getEditURL() }}">Edit</a></li>
|
||||||
<li><a href="{{ package.getNewScreenshotURL() }}">Add screenshot</a></li>
|
<li><a href="{{ package.getNewScreenshotURL() }}">Add screenshot</a></li>
|
||||||
{% elif current_user.is_authenticated %}
|
{% elif current_user.is_authenticated %}
|
||||||
<li><a href="{{ package.getCreateEditRequestURL() }}">Suggest Change</a></li>
|
<li><a href="{{ package.getCreateEditRequestURL() }}">Suggest Change</a></li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if package.checkPerm(current_user, "MAKE_RELEASE") %}
|
{% if package.checkPerm(current_user, "MAKE_RELEASE") %}
|
||||||
<li><a href="{{ package.getCreateReleaseURL() }}">Create Release</a></li>
|
<li><a href="{{ package.getCreateReleaseURL() }}">Create Release</a></li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</ul>
|
</ul>
|
||||||
|
</div>
|
||||||
</aside>
|
</aside>
|
||||||
|
|
||||||
<p class="package-short-large">{{ package.shortDesc }}</p>
|
<p class="package-short-large">{{ package.shortDesc }}</p>
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
<div class="box box_grey">
|
<div class="box box_grey">
|
||||||
<h2>{{ user.display_name }}</h2>
|
<h2>{{ user.display_name }}</h2>
|
||||||
|
|
||||||
<table>
|
<table class="box-body">
|
||||||
<tr>
|
<tr>
|
||||||
<td>Rank:</td>
|
<td>Rank:</td>
|
||||||
<td>
|
<td>
|
||||||
@ -47,20 +47,22 @@
|
|||||||
|
|
||||||
<div class="box box_grey">
|
<div class="box box_grey">
|
||||||
<h2>Packages</h2>
|
<h2>Packages</h2>
|
||||||
<ul>
|
<div class="box-body">
|
||||||
{% for p in user.packages %}
|
<ul>
|
||||||
<li><a href="{{ p.getDetailsURL() }}">
|
{% for p in user.packages %}
|
||||||
{{ p.title }} by {{ p.author.display_name }}
|
<li><a href="{{ p.getDetailsURL() }}">
|
||||||
</a></li>
|
{{ p.title }} by {{ p.author.display_name }}
|
||||||
{% else %}
|
</a></li>
|
||||||
<li><i>No packages available</i></ul>
|
{% else %}
|
||||||
{% endfor %}
|
<li><i>No packages available</i></ul>
|
||||||
</ul>
|
{% endfor %}
|
||||||
{% if user == current_user or user.checkPerm(current_user, "CHANGE_AUTHOR") %}
|
</ul>
|
||||||
<p><a class="button" href="{{ url_for('create_edit_package_page', author=user.username) }}">
|
{% if user == current_user or user.checkPerm(current_user, "CHANGE_AUTHOR") %}
|
||||||
Create
|
<p><a class="button" href="{{ url_for('create_edit_package_page', author=user.username) }}">
|
||||||
</a></p>
|
Create
|
||||||
{% endif %}
|
</a></p>
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% if form %}
|
{% if form %}
|
||||||
@ -68,7 +70,7 @@
|
|||||||
<div class="box box_grey">
|
<div class="box box_grey">
|
||||||
<h2>Edit Details</h2>
|
<h2>Edit Details</h2>
|
||||||
|
|
||||||
<form action="" method="POST" class="form" role="form">
|
<form action="" method="POST" class="form box-body" role="form">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-sm-6 col-md-5 col-lg-4">
|
<div class="col-sm-6 col-md-5 col-lg-4">
|
||||||
{{ form.hidden_tag() }}
|
{{ form.hidden_tag() }}
|
||||||
|
Loading…
Reference in New Issue
Block a user