Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: roopeshvaddepally/bayareahash
base: 40a06b0f0d
...
head fork: roopeshvaddepally/bayareahash
compare: 58520e2152
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 1 contributor
Showing with 11 additions and 13 deletions.
  1. +1 −0  common/db.py
  2. +10 −13 templates/admin.html
View
1  common/db.py
@@ -32,6 +32,7 @@ def admin_query():
k["description"] = (k["description"][:75] + '..') if len(k["description"]) > 75 else k["description"]
k["_id"] = str(k["_id"])
k["date_crawled"] = k["date_crawled"].strftime('%d%b%Y')
+ k["DT_RowId"] = str(k["_id"])
return arr
View
23 templates/admin.html
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
- <title>{% block title %}{{ title }}{% endblock %}</title>
+ <title>Admin- BAHashed</title>
<link rel="stylesheet" type="text/css" href="/static/css/app.css">
<script type="text/javascript" src="/static/js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="/static/js/jquery.dataTables.min.js"></script>
@@ -40,8 +40,6 @@
"sAjaxSource": "/curate",
"bProcessing": true,
"bJQueryUI": true,
- "sScrollY": "100%",
- "bScrollCollapse": true,
"bPaginate": false,
"oTableTools": {
"sRowSelect": "multi",
@@ -58,8 +56,6 @@
{ "mDataProp": "date_crawled" }
]
});
- var ofc = new FixedColumns( oTable );
- oFC.fnSetRowHeight($('#dtable tbody tr', 100));
setTimeout(function() {
$('#dtable tr').click( function() {
$(this).toggleClass('row_selected');
@@ -70,6 +66,7 @@
function submit() {
console.log();
$.each($('.row_selected'), function(index, value) {
+ console.log($(value).attr('id'));
});
}
</script>
@@ -99,14 +96,14 @@
<table cellpadding="0" cellspacing="0" border="0" class="display" id="dtable">
<thead>
<tr>
- <th width="20%">category</th>
- <th width="25%">description</th>
- <th width="25%">title</th>
- <th width="25%">url</th>
- <th width="25%">meetup_date</th>
- <th width="25%">thumbnail</th>
- <th width="25%">ID</th>
- <th width="25%">Date Crawled</th>
+ <th>category</th>
+ <th>description</th>
+ <th>title</th>
+ <th>url</th>
+ <th>meetup_date</th>
+ <th>thumbnail</th>
+ <th>ID</th>
+ <th>Date Crawled</th>
</tr>
</thead>
<tbody>

No commit comments for this range

Something went wrong with that request. Please try again.