Fix index page template and style
This commit is contained in:
parent
7efca28c22
commit
eb12152089
|
@ -21,14 +21,15 @@ body.index.ViewController .content-outer {
|
||||||
|
|
||||||
#new-harvest-source {
|
#new-harvest-source {
|
||||||
background: transparent url("images/icons/source_new.png") no-repeat 0px 0px;
|
background: transparent url("images/icons/source_new.png") no-repeat 0px 0px;
|
||||||
padding-left: 20px;
|
margin-top: 30px;
|
||||||
margin-bottom: 10px;
|
padding-left: 20px;
|
||||||
font-weight: bold;
|
margin-bottom: 10px;
|
||||||
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
#show-inactive-sources-content{
|
#show-inactive-sources-content{
|
||||||
float: right;
|
float: right;
|
||||||
width: 150px;
|
width: 170px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#show-inactive-sources-content input{
|
#show-inactive-sources-content input{
|
||||||
|
@ -38,11 +39,17 @@ body.index.ViewController .content-outer {
|
||||||
#show-inactive-sources-content label{
|
#show-inactive-sources-content label{
|
||||||
float: left;
|
float: left;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
margin-left: 5px;
|
margin-right: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#harvest-sources th.action{
|
#harvest-sources th.action{
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
|
width: 50px;
|
||||||
|
text-align: middle;
|
||||||
|
}
|
||||||
|
|
||||||
|
#harvest-sources td.action{
|
||||||
|
text-align: middle;
|
||||||
}
|
}
|
||||||
|
|
||||||
#harvest-sources .inactive{
|
#harvest-sources .inactive{
|
||||||
|
@ -57,15 +64,6 @@ body.index.ViewController .content-outer {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
#harvest-source-actions {
|
|
||||||
margin-bottom: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#harvest-source-actions img{
|
|
||||||
vertical-align: middle;
|
|
||||||
margin: 0 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.source-state-active{
|
.source-state-active{
|
||||||
font-weight:bold;
|
font-weight:bold;
|
||||||
}
|
}
|
||||||
|
@ -75,6 +73,15 @@ body.index.ViewController .content-outer {
|
||||||
color: red;
|
color: red;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#harvest-source-actions {
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#harvest-source-actions img{
|
||||||
|
vertical-align: middle;
|
||||||
|
margin: 0 5px;
|
||||||
|
}
|
||||||
|
|
||||||
#harvest-sources .publisher > td{
|
#harvest-sources .publisher > td{
|
||||||
background-color: #E3E3E3 !important;
|
background-color: #E3E3E3 !important;
|
||||||
padding: 3px;
|
padding: 3px;
|
||||||
|
|
|
@ -5,6 +5,16 @@
|
||||||
{% block breadcrumb_content %}
|
{% block breadcrumb_content %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block styles %}
|
||||||
|
{{ super() }}
|
||||||
|
<link type="text/css" rel="stylesheet" media="all" href="/ckanext/harvest/style.css" />
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block scripts %}
|
||||||
|
{{ super() }}
|
||||||
|
<script>$("#show-inactive-sources").click(function(){$("#harvest-sources .inactive").toggle()});</script>
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
{% block primary %}
|
{% block primary %}
|
||||||
<article class="module">
|
<article class="module">
|
||||||
<div class="module-content">
|
<div class="module-content">
|
||||||
|
@ -20,8 +30,8 @@
|
||||||
|
|
||||||
{% if c.sources %}
|
{% if c.sources %}
|
||||||
<div id="show-inactive-sources-content">
|
<div id="show-inactive-sources-content">
|
||||||
|
<label for="show-inactive-sources">Show inactive sources</label>
|
||||||
<input type="checkbox" id="show-inactive-sources" />
|
<input type="checkbox" id="show-inactive-sources" />
|
||||||
<label for="show-inactive-sources"> Show inactive sources</label>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<table id="harvest-sources" class="table table-bordered table-condensed ${'publishers' if c.publisher_auth else ''}" >
|
<table id="harvest-sources" class="table table-bordered table-condensed ${'publishers' if c.publisher_auth else ''}" >
|
||||||
|
@ -49,9 +59,9 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% set old_publisher = source['publisher_id'] %}
|
{% set old_publisher = source['publisher_id'] %}
|
||||||
<tr class="{{ 'active' if source.active else 'inactive' }}">
|
<tr class="{{ 'active' if source.active else 'inactive' }}">
|
||||||
<td><a href="harvest/{{ source.id }}"><img src="ckanext/harvest/images/icons/source_view.png" alt="View" title="View" /></a></td>
|
<td class="action"><a href="harvest/{{ source.id }}"><img src="ckanext/harvest/images/icons/source_view.png" alt="View" title="View" /></a></td>
|
||||||
<td><a href="harvest/edit/{{ source.id }}"><img src="ckanext/harvest/images/icons/source_edit.png" alt="Edit" title="Edit" /></a></td>
|
<td class="action"><a href="harvest/edit/{{ source.id }}"><img src="ckanext/harvest/images/icons/source_edit.png" alt="Edit" title="Edit" /></a></td>
|
||||||
<td><a href="harvest/refresh/{{ source.id }}"><img src="ckanext/harvest/images/icons/source_refresh.png" alt="Refresh" title="Refresh" /></a></td>
|
<td class="action"><a href="harvest/refresh/{{ source.id }}"><img src="ckanext/harvest/images/icons/source_refresh.png" alt="Refresh" title="Refresh" /></a></td>
|
||||||
<td title="{{ source.url }}">{{ source.url | truncate(50) }}</td>
|
<td title="{{ source.url }}">{{ source.url | truncate(50) }}</td>
|
||||||
<td>{{ source.type }}</td>
|
<td>{{ source.type }}</td>
|
||||||
<td class="state">{{ source.active }}</td>
|
<td class="state">{{ source.active }}</td>
|
||||||
|
|
Loading…
Reference in New Issue