-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
479 additions
and
205 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,9 @@ MAINTAINER Tim Sutton<[email protected]> | |
ADD 71-apt-cacher-ng /etc/apt/apt.conf.d/71-apt-cacher-ng | ||
|
||
# Pandoc needed to generate rst dumps, uic compressor needed for django-pipeline | ||
RUN apt-get update -y; apt-get -y --force-yes install yui-compressor pandoc | ||
RUN apt-get update -y; apt-get -y --force-yes install yui-compressor | ||
RUN wget https://github.com/jgm/pandoc/releases/download/1.17.1/pandoc-1.17.1-2-amd64.deb | ||
RUN dpkg -i pandoc-1.17.1-2-amd64.deb | ||
|
||
ADD REQUIREMENTS.txt /REQUIREMENTS.txt | ||
RUN pip install -r /REQUIREMENTS.txt | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
/** | ||
* Created by Dimas Ciputra <[email protected]> on 22/07/16. | ||
*/ | ||
|
||
var sortable_state = 'enabled'; | ||
|
||
$("#sortable").sortable({ | ||
stop: onStopSortable | ||
}); | ||
|
||
function onStopSortable(e, ui) { | ||
var categories = $.map($(this).find('li'), function(el, i){ | ||
var cat = String(el.id).split('-'); | ||
return { | ||
'sort_number' : i, | ||
'id': cat[0], | ||
'name': cat[1] | ||
} | ||
}); | ||
sortableDisable(); | ||
|
||
var data_url = $("#sortable").data("url"); | ||
|
||
if(data_url) { | ||
$.ajax({ | ||
url: data_url, | ||
type: "POST", | ||
data: JSON.stringify(categories), | ||
success: function (response) { | ||
sortableEnable(); | ||
if($('#order-saved').is(":visible")) | ||
{ | ||
$('#order-saved').hide(); | ||
showOrderSaved(); | ||
} else { | ||
showOrderSaved(); | ||
} | ||
}, | ||
error: function (response) { | ||
console.log(response); | ||
sortableEnable(); | ||
if($('#order-not-saved').is(":visible")) | ||
{ | ||
$('#order-not-saved').hide(); | ||
showOrderNotSaved(); | ||
} else { | ||
showOrderNotSaved(); | ||
} | ||
} | ||
|
||
}); | ||
} | ||
|
||
} | ||
|
||
function showOrderSaved() { | ||
$('#order-saved').fadeIn( "fast", function() { | ||
$('#order-saved').fadeOut(2000); | ||
}); | ||
} | ||
|
||
function showOrderNotSaved() { | ||
$('#order-not-saved').fadeIn( "fast", function() { | ||
$('#order-not-saved').fadeOut(2000); | ||
}); | ||
} | ||
|
||
function sortableEnable() { | ||
sortable_state = 'enabled'; | ||
$("#sortable").sortable({ | ||
stop: onStopSortable | ||
}); | ||
$("#sortable").sortable("option", "disabled", false ); | ||
$("#sortable").disableSelection(); | ||
return false; | ||
} | ||
function sortableDisable() { | ||
sortable_state = 'disabled'; | ||
$( "#sortable" ).sortable("disable"); | ||
return false; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/** | ||
* Created by Dimas Ciputra <[email protected]> on 15/07/16. | ||
*/ | ||
|
||
$(".pop-image").on("click", function() { | ||
$('#imagepreview').attr('src', $(this).children().attr('id')); | ||
$('#image-url').attr('href', $(this).children().attr('id')); | ||
$('#imagemodal').modal('show'); | ||
return false; | ||
}); | ||
|
||
$(".pop-gif").on("click", function() { | ||
$('#imagepreview').attr('src', $(this).siblings().attr('id')); | ||
$('#image-url').attr('href', $(this).siblings().attr('id')); | ||
$('#imagemodal').modal('show'); | ||
return false; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,4 +25,6 @@ <h4 class="muted">Version: | |
<h5 id="comments">Comments</h5> | ||
{% disqus_show_comments %} | ||
|
||
|
||
{% endblock %} | ||
|
Oops, something went wrong.