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 {
|
||||
background: transparent url("images/icons/source_new.png") no-repeat 0px 0px;
|
||||
padding-left: 20px;
|
||||
margin-bottom: 10px;
|
||||
font-weight: bold;
|
||||
margin-top: 30px;
|
||||
padding-left: 20px;
|
||||
margin-bottom: 10px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#show-inactive-sources-content{
|
||||
float: right;
|
||||
width: 150px;
|
||||
width: 170px;
|
||||
}
|
||||
|
||||
#show-inactive-sources-content input{
|
||||
|
@ -38,11 +39,17 @@ body.index.ViewController .content-outer {
|
|||
#show-inactive-sources-content label{
|
||||
float: left;
|
||||
font-weight: normal;
|
||||
margin-left: 5px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
#harvest-sources th.action{
|
||||
font-style: italic;
|
||||
width: 50px;
|
||||
text-align: middle;
|
||||
}
|
||||
|
||||
#harvest-sources td.action{
|
||||
text-align: middle;
|
||||
}
|
||||
|
||||
#harvest-sources .inactive{
|
||||
|
@ -57,15 +64,6 @@ body.index.ViewController .content-outer {
|
|||
font-weight: bold;
|
||||
}
|
||||
|
||||
#harvest-source-actions {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
#harvest-source-actions img{
|
||||
vertical-align: middle;
|
||||
margin: 0 5px;
|
||||
}
|
||||
|
||||
.source-state-active{
|
||||
font-weight:bold;
|
||||
}
|
||||
|
@ -75,6 +73,15 @@ body.index.ViewController .content-outer {
|
|||
color: red;
|
||||
}
|
||||
|
||||
#harvest-source-actions {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
#harvest-source-actions img{
|
||||
vertical-align: middle;
|
||||
margin: 0 5px;
|
||||
}
|
||||
|
||||
#harvest-sources .publisher > td{
|
||||
background-color: #E3E3E3 !important;
|
||||
padding: 3px;
|
||||
|
|
|
@ -5,6 +5,16 @@
|
|||
{% block breadcrumb_content %}
|
||||
{% 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 %}
|
||||
<article class="module">
|
||||
<div class="module-content">
|
||||
|
@ -20,8 +30,8 @@
|
|||
|
||||
{% if c.sources %}
|
||||
<div id="show-inactive-sources-content">
|
||||
<label for="show-inactive-sources">Show inactive sources</label>
|
||||
<input type="checkbox" id="show-inactive-sources" />
|
||||
<label for="show-inactive-sources"> Show inactive sources</label>
|
||||
</div>
|
||||
|
||||
<table id="harvest-sources" class="table table-bordered table-condensed ${'publishers' if c.publisher_auth else ''}" >
|
||||
|
@ -49,9 +59,9 @@
|
|||
{% endif %}
|
||||
{% set old_publisher = source['publisher_id'] %}
|
||||
<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><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/{{ source.id }}"><img src="ckanext/harvest/images/icons/source_view.png" alt="View" title="View" /></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 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>{{ source.type }}</td>
|
||||
<td class="state">{{ source.active }}</td>
|
||||
|
|
Loading…
Reference in New Issue