Commit 3c3c507c442713574b18ca1eb378407f5d29e362
1 parent
8c3f4800
zmiana kolejności wierszy w podglądzie wzoru
Showing
2 changed files
with
19 additions
and
17 deletions
patterns/static/css/pattern_view.css
... | ... | @@ -18,4 +18,8 @@ table.detailed-counts td, table.detailed-counts th { |
18 | 18 | table.detailed-counts th.left-header { |
19 | 19 | border-right-style: solid; |
20 | 20 | text-align: left; |
21 | +} | |
22 | + | |
23 | +table.detailed-counts th.example-header { | |
24 | + padding-left: 4em; | |
21 | 25 | } |
22 | 26 | \ No newline at end of file |
... | ... |
patterns/templates/pattern_preview.html
... | ... | @@ -38,6 +38,20 @@ |
38 | 38 | </td> |
39 | 39 | {% endfor %} |
40 | 40 | </tr> |
41 | + <tr> | |
42 | + <th class="left-header example-header">{% trans 'Example' %}</th> | |
43 | + {% for subgroup_label, count, example, url, extras in detailed_counts %} | |
44 | + <td> | |
45 | + {% if example != None %} | |
46 | + {% if detailed_counts|length > 1 or extras_present %} | |
47 | + <span class="radio switch-example{% if forloop.first %} checked active-example{% endif %}" | |
48 | + data-example="{{ example.1 }}"></span> | |
49 | + {% endif %} | |
50 | + {% include "lexeme_link.html" with lexeme=example.0 %} | |
51 | + {% endif %} | |
52 | + </td> | |
53 | + {% endfor %} | |
54 | + </tr> | |
41 | 55 | {% if extras_present %} |
42 | 56 | <tr> |
43 | 57 | <th class="left-header">{% trans 'Including quasi-verbs' %}</th> |
... | ... | @@ -53,24 +67,8 @@ |
53 | 67 | </td> |
54 | 68 | {% endfor %} |
55 | 69 | </tr> |
56 | - {% endif %} | |
57 | - <tr> | |
58 | - <th class="left-header">{% trans 'Example' %}</th> | |
59 | - {% for subgroup_label, count, example, url, extras in detailed_counts %} | |
60 | - <td> | |
61 | - {% if example != None %} | |
62 | - {% if detailed_counts|length > 1 or extras_present %} | |
63 | - <span class="radio switch-example{% if forloop.first %} checked active-example{% endif %}" | |
64 | - data-example="{{ example.1 }}"></span> | |
65 | - {% endif %} | |
66 | - {% include "lexeme_link.html" with lexeme=example.0 %} | |
67 | - {% endif %} | |
68 | - </td> | |
69 | - {% endfor %} | |
70 | - </tr> | |
71 | - {% if extras_present %} | |
72 | 70 | <tr> |
73 | - <th class="left-header">{% trans 'Quasi-verb' %}</th> | |
71 | + <th class="left-header example-header">{% trans 'Example' %}</th> | |
74 | 72 | {% for subgroup_label, count, example, url, extras in detailed_counts %} |
75 | 73 | <td> |
76 | 74 | {% with extras.1 as example %} |
... | ... |