@@ -93,6 +93,7 @@ <h3 align="center">Answers</h3>
9393 < ul class ="nav nav-tabs ">
9494 < li class ="active "> < a data-toggle ="tab " href ="#recent_question "> Recent questions</ a > </ li >
9595 < li > < a data-toggle ="tab " href ="#most_active "> Most active questions</ a > </ li >
96+ {% if show_spam_list %}< li > < a data-toggle ="tab " href ="#marked_as_spam "> Marked as spam</ a > </ li > {% endif %}
9697 </ ul >
9798 </ div >
9899 < div class ="panel-body ">
@@ -279,6 +280,107 @@ <h3 align="center">Answers</h3>
279280 </ tbody >
280281 </ table >
281282 </ div >
283+ <!-- spam questions -->
284+ {% if show_spam_list %}
285+ < div id ="marked_as_spam " class ="tab-pane fade ">
286+
287+ < table id = "spamlistTable " class ="tablesorter-blue ">
288+ < thead >
289+ < tr >
290+ < th > FOSS </ th >
291+ < th > Tutorial</ th >
292+ < th > Min </ th >
293+ < th > Sec </ th >
294+ < th > Question < span class ="glyphicon glyphicon-link "> </ span > </ th >
295+ < th > First Post on</ th >
296+ < th > First Post by</ th >
297+ < th > Recent Post on </ th >
298+ < th > Recent Post by</ th >
299+ < th > Views</ th >
300+ < th > Answers</ th >
301+ </ tr >
302+ </ thead >
303+ < tbody >
304+ {% for question in spam_questions %}
305+ < tr >
306+ < td >
307+ < span href ="# " class ="category " data-toggle ="tooltip " data-placement ="top " title ="{{ question.category}} ">
308+ {{ question.category|truncatechars:12 }}
309+ </ span >
310+ < a class ="pull-right " href ="{% url 'website:filter' question.category %}?qid={{ question.id }} ">
311+ < span class ="glyphicon glyphicon-search "> </ span >
312+ </ a >
313+ </ td >
314+
315+ < td >
316+ < span class ="tutorial " data-toggle ="tooltip " data-placement ="top " title ="{{ question.tutorial}} ">
317+ {{ question.tutorial|truncatechars:12 }}
318+ </ span >
319+ < a class ="pull-right " href ="{% url 'website:filter' question.category question.tutorial %}?qid={{ question.id }} ">
320+ < span class ="glyphicon glyphicon-search "> </ span >
321+ </ a >
322+ </ td >
323+
324+ < td >
325+ < span >
326+ < a href ="{% url 'website:filter' question.category question.tutorial question.minute_range %}?qid={{ question.id }} ">
327+ {{ question.minute_range }}
328+ </ a >
329+ </ span >
330+ </ td >
331+
332+ < td >
333+ < span >
334+ < a href ="{% url 'website:filter' question.category question.tutorial question.minute_range question.second_range%}?qid={{ question.id }} ">
335+ {{ question.second_range }}
336+ </ a >
337+ </ span >
338+ </ td >
339+
340+ < td >
341+ < span class ="title " data-toggle ="tooltip " data-placement ="top " title ="{{ question.title }} ">
342+ < a href ="{% url 'website:get_question' question.id %}{% prettify question.title %} "> {{ question.title|truncatechars:40 }}</ a >
343+ </ span >
344+ </ td >
345+ < td >
346+ < span >
347+ < i >
348+ {{ question.date_created|date:"d-m-y" }}
349+ </ i >
350+ </ span >
351+ </ td >
352+ < td >
353+ < span class ="title " data-toggle ="tooltip " data-placement ="top " title ="{{ question.user }} ">
354+ {{ question.user|truncatechars:10 }}
355+ </ span >
356+ </ td >
357+
358+ < td >
359+ < span >
360+ < i >
361+ {{ question.last_active }}
362+ </ i >
363+ </ span >
364+ </ td >
365+ < td >
366+ < span class ="title " data-toggle ="tooltip " data-placement ="top " title ="{{ question.last_post_user }} ">
367+ {{ question.last_post_user|truncatechars:10 }}
368+ </ span >
369+ </ td >
370+
371+ < td >
372+ {{ question.views}}
373+ </ td >
374+
375+ < td >
376+ {{ question.answer_set.count }}
377+ </ td >
378+ </ tr >
379+ {% endfor %}
380+ </ tbody >
381+ </ table >
382+ </ div >
383+ {% endif %}
282384 </ div >
283385 </ div > <!-- /.panel-body -->
284386 </ div > <!-- /.panel -->
0 commit comments