~fnux/meta.sr.ht

1523a34288ef75828716b82551f545241e9eba7c — Drew DeVault 7 months ago 8670578 0.50.8
Add user profile information to admin page
2 files changed, 21 insertions(+), 7 deletions(-)

M metasrht/templates/user.html
M scss/main.scss
M metasrht/templates/user.html => metasrht/templates/user.html +21 -2
@@ 21,8 21,22 @@
      <dt class="col-md-3">Suspension Notice</dt>
      <dd class="col-md-9">{{user.suspension_notice}}</dd>
      {% endif %}
      <dt class="col-md-3">Welcome emails</dt>
      <dd class="col-md-9">{{user.welcome_emails}}</dd>

      {% if user.location %}
      <dt class="col-md-3">Location</dt>
      <dd class="col-md-9">{{user.location}}</dd>
      {% endif %}
      {% if user.url %}
      <dt class="col-md-3">URL</dt>
      <dd class="col-md-9">
        <a
          href="{{user.url}}"
          target="_blank"
          rel="me noopener noreferrer nofollow"
        >{{user.url}}</a>
      </dd>
      {% endif %}

      {% if cfg("meta.sr.ht::billing", "enabled") == "yes"
        and user.stripe_customer %}
      <dt class="col-md-3">Stripe customer</dt>


@@ 43,6 57,11 @@
      <dd class="col-md-9">{{user.payment_due | date}}</dd>
      {% endif %}
    </dl>
    {% if user.bio %}
    <blockquote>
      {{user.bio | md}}
    </blockquote>
    {% endif %}
    {% if reset_pending %}
    <div class="alert alert-warning">
      <a

M scss/main.scss => scss/main.scss +0 -5
@@ 1,10 1,5 @@
@import "base";

blockquote {
  padding: 1rem;
  background: #ddd;
}

img {
  border: 1px solid #eceeef;
}