This commit is contained in:
Chris Van 2012-02-19 12:26:06 -08:00
Родитель 32d4497de0
Коммит 73926bca7c
10 изменённых файлов: 31 добавлений и 127 удалений

Просмотреть файл

@ -1,98 +0,0 @@
@import '../devreg/lib';
#refunds {
h3 {
clear: both; /* To clear the old-style paginator. Let's kill that later. */
em {
color: @medium-gray;
}
}
.item {
padding: 0;
}
.price {
color: @green;
}
.long {
white-space: nowrap;
}
th, td {
padding: 5px;
}
th {
background: @border-blue;
border-bottom: 1px dotted #ADD0DC;
color: @medium-gray;
font-size: 11px;
}
td {
font-size: 11px;
vertical-align: top;
}
.reason td {
background: lighten(@link, 45%);
border: 0;
color: @medium-gray;
font-size: 11px;
padding-top: 0;
}
/* Tables suck and can't deal with `border-radius`. So deal with this. */
thead tr:first-child th {
&:first-child {
-moz-border-radius-topleft: 5px;
-webkit-border-radius-topleft: 5px;
border-top-left-radius: 5px;
}
&:last-child {
-moz-border-radius-topright: 5px;
-webkit-border-radius-topright: 5px;
border-top-right-radius: 5px;
}
}
tbody tr:last-child td {
.border-radius(0 0 5px 5px);
}
/* Styles for "Action" buttons. */
#queue-pending tbody {
tr:last-child td {
-moz-border-radius-bottomright: 0;
-webkit-border-radius-bottomright: 0;
border-bottom-right-radius: 0;
}
.action {
border: 1px solid @border-blue;
border-width: 0 0 0 1px;
}
}
form {
margin: 0;
button {
font-size: 12px;
line-height: inherit;
padding: 0 30px;
width: 100%;
+ button {
margin-top: 5px;
}
}
}
}
.html-rtl #refunds {
thead tr:first-child th {
&:first-child {
.border-radius(0 5px 0 0);
}
&:last-child {
.border-radius(5px 0 0 0);
}
}
#queue-pending tbody {
tr:last-child td {
.border-radius(0 0 5px 0);
}
.action {
border-width: 0 1px 0 0;
}
}
}

Просмотреть файл

@ -1,4 +1,4 @@
@import '../devreg/lib';
@import 'lib';
.button, button, input[type=submit] {
position: relative;

Просмотреть файл

@ -1,4 +1,4 @@
@import '../devreg/lib';
@import 'lib';
.devhub-form .in-app-config input {
width: 30em;

Просмотреть файл

@ -142,7 +142,7 @@
}
.no-results {
font: bold 24px @sans-stack;
font: bold 18px @sans-stack;
opacity: .5;
padding: 20px;
text-align: center;

Просмотреть файл

@ -1,4 +1,4 @@
@import '../devreg/lib';
@import 'lib';
.primary {
.prose {

Просмотреть файл

@ -1,14 +1,18 @@
@import '../devreg/lib';
@import 'lib';
#refunds {
h3 {
h2 {
clear: both; /* To clear the old-style paginator. Let's kill that later. */
em {
color: @medium-gray;
}
}
.item {
.island {
margin-bottom: 25px;
padding: 0;
p {
margin: .5em 0;
}
}
.price {
color: @green;

Просмотреть файл

@ -30,7 +30,7 @@
</form>
</div>
{% endif %}
<form id="profile-form" class="island devhub-form" method="post">
<form id="profile-form" class="devhub-form" method="post">
{{ csrf() }}
{% include 'developers/includes/addons_create_profile.html' %}
<footer class="listing-footer">

Просмотреть файл

@ -7,6 +7,7 @@
<h2>{{ _('Create a Developer Profile') }}</h2>
{% endif %}
<div class="island">
<p>
{{ loc("Your developer profile will tell users about you, why you made this
app, and what's next for the app. This profile can be useful for
@ -42,3 +43,4 @@
{{ profile_form.the_future }}
{{ some_html_tip() }}
</div>
</div>

Просмотреть файл

@ -1,13 +1,8 @@
{% extends 'developers/base.html' %}
{% extends 'developers/base_impala.html' %}
{% set title = _('Manage Refunds') %}
{% block title %}{{ hub_page_title(title, addon) }}{% endblock %}
{% set can_edit = check_addon_ownership(request, addon) %}
{% block bodyclass %}
{{ super() }}{% if not can_edit %} no-edit{% endif %}
{% endblock %}
{% macro base_th() %}
<th>{{ _('Transaction ID') }}</th>
<th>{{ _('User') }}</th>
@ -70,7 +65,7 @@
{% block content %}
<header>
{{ hub_breadcrumbs(addon, items=[(None, title)]) }}
<h2>{{ title }}</h2>
<h1>{{ title }}</h1>
</header>
<section id="refunds" class="primary payments devhub-form" role="main">
{% if not addon.is_premium() %}
@ -82,11 +77,11 @@
</p>
</div>
{% else %}
<h3>
<h2>
{{ amo.REFUND_STATUSES[amo.REFUND_PENDING] }}
<em>({{ pending.paginator.count }})</em>
</h3>
<div class="item">
</h2>
<div class="island">
{% if not pending.paginator.count %}
<p id="queue-pending" class="no-results">
{{ _('No pending refunds.') }}
@ -122,11 +117,11 @@
</div>
{{ pending|paginator }}
<h3>
<h2>
{{ amo.REFUND_STATUSES[amo.REFUND_APPROVED] }}
<em>({{ approved.paginator.count }})</em>
</h3>
<div class="item">
</h2>
<div class="island">
{% if not approved.paginator.count %}
<p id="queue-approved" class="no-results">
{{ _('No approved refunds.') }}
@ -149,11 +144,11 @@
</div>
{{ approved|paginator }}
<h3>
<h2>
{{ amo.REFUND_STATUSES[amo.REFUND_APPROVED_INSTANT] }}
<em>({{ instant.paginator.count }})</em>
</h3>
<div class="item">
</h2>
<div class="island">
{% if not instant.paginator.count %}
<p id="queue-instant" class="no-results">
{{ loc('No instantly approved refunds.') }}
@ -176,11 +171,11 @@
</div>
{{ instant|paginator }}
<h3>
<h2>
{{ amo.REFUND_STATUSES[amo.REFUND_DECLINED] }}
<em>({{ declined.paginator.count }})</em>
</h3>
<div class="item">
</h2>
<div class="island">
{% if not declined.paginator.count %}
<p id="queue-declined" class="no-results">
{{ loc('No declined refunds.') }}

Просмотреть файл

@ -125,6 +125,7 @@ MINIFY_BUNDLES['css'].update({
'css/devreg/authors.less',
'css/devreg/in-app-config.less',
'css/devreg/paypal.less',
'css/devreg/refunds.less',
# Image Uploads (used for "Edit Listing" Images and Submission).
'css/devreg/media.less',
@ -151,7 +152,7 @@ MINIFY_BUNDLES['css'].update({
#'css/devreg-legacy/formset.less',
#'css/devreg-legacy/devhub-forms.less',
'css/devreg-legacy/submission.less',
'css/devreg-legacy/refunds.less',
#'css/devreg-legacy/refunds.less',
#'css/devreg-legacy/devhub-buttons.less',
#'css/devreg-legacy/in-app-config.less',
@ -192,7 +193,7 @@ MINIFY_BUNDLES['css'].update({
#'css/devreg-impala/dashboard.less',
#'css/devreg-impala/devhub-forms.less',
'css/devreg-impala/submission.less',
'css/devreg-impala/refunds.less',
#'css/devreg-impala/refunds.less',
),
'hub': (
'css/impala/base.css',