~edwargix/git.sr.ht

094095230ba03aedd2c3046e00ae4c930e978ebb — наб 4 years ago 755189c
Move explicit inline styles into the head block
M gitsrht/templates/blob.html => gitsrht/templates/blob.html +3 -1
@@ 3,7 3,7 @@
{% block title %}
<title>{{repo.owner.canonical_name}}/{{repo.name}}: {{path_join(*path)}} - {{cfg("sr.ht", "site-name")}} git</title>
{% endblock %}
{% block content %}
{% block head %}
<style>
pre {
  tab-size: {{editorconfig.tab_width()}}


@@ 13,6 13,8 @@ pre, body {
  margin-bottom: 0;
}
</style>
{% endblock %}
{% block content %}
<div class="header-extension" style="margin-bottom: 0;">
  <div class="blob container-fluid">
    <span>

M gitsrht/templates/send-email-end.html => gitsrht/templates/send-email-end.html +19 -16
@@ 3,7 3,7 @@
{% block title %}
<title>Preparing patchset for {{repo.owner.canonical_name}}/{{repo.name}} - {{cfg("sr.ht", "site-name")}} git</title>
{% endblock %}
{% block body %} 
{% block body %}
<div class="header-tabbed">
  <div class="container">
    <ul class="nav nav-tabs">


@@ 115,20 115,23 @@
      <button class="btn btn-primary">Continue {{icon("caret-right")}}</a>
    </div>
  </div>
  <style>
    .commit-diff {
      display: none;
    }

    {% for c in commits %}
    {% for d in commits[loop.index-1:] %}
    #commit-{{c.oid.hex}}:checked ~ #commit-diff-{{d.oid.hex}}
    {%- if not loop.last %},{% endif %}
    {% endfor %}
    {
      display: block;
    }
    {% endfor %}
  </style>
</form>
{% endblock %}

{% block head %}
<style>
  .commit-diff {
    display: none;
  }

  {% for c in commits %}
  {% for d in commits[loop.index-1:] %}
  #commit-{{c.oid.hex}}:checked ~ #commit-diff-{{d.oid.hex}}
  {%- if not loop.last %},{% endif %}
  {% endfor %}
  {
    display: block;
  }
  {% endfor %}
</style>
{% endblock %}

M gitsrht/templates/send-email.html => gitsrht/templates/send-email.html +7 -4
@@ 3,7 3,7 @@
{% block title %}
<title>Preparing patchset for {{repo.owner.canonical_name}}/{{repo.name}} - {{cfg("sr.ht", "site-name")}} git</title>
{% endblock %}
{% block body %} 
{% block body %}
<div class="header-tabbed">
  <div class="container">
    <ul class="nav nav-tabs">


@@ 112,7 112,11 @@
  </div>
  <div class="clearfix"></div>
  {% endfor %}
  <style>
</form>
{% endblock %}

{% block head %}
<style>
  .event-list.commit-list, .form-controls {
    display: none;
  }


@@ 126,6 130,5 @@
    display: block;
  }
  {% endfor %}
  </style>
</form>
</style>
{% endblock %}