<commit_before>{% extends "layout.html" %}
{% set active_page = active_page|default("feedback") %}
{% from 'buildTable.html' import sastable %}
{% from 'generalMacros.html' import login %}

{% block head %}
    <link rel="stylesheet" type="text/css" href="{{url_for('static',filename='css/index.css')}}">
    <link rel="stylesheet" type="text/css" href="{{url_for('static',filename='css/verticals.css')}}">
{% endblock head %}

{% block code %}

<script type='text/javascript'>
	
	// refresh the page (function to run after login)
	function reloadPage() {
		location.reload();
	}
	
	// promote ticket
	function promoteticket(ticketid) {
		
		$.post('https://internal.sdss.org/inspection/marvin/feedback/ticket/promote', {'id':ticketid},'json')
			.done(function(data){
				if (data.result['status'] < 0) {
					alert(data.result['message']);
				} else {
					alert('message', data.result['message']);
					alert('tracticket id', data.result['tracticketid']);
				}
			})
			.fail(function(data){
                alert("Error in response from Inspection webapp.  Please contact <EMAIL>");
			});			
		
	}
	
</script>
{% endblock code %}<commit_msg>adding promote ticket js to feedback table<commit_after>{% extends "layout.html" %}
{% set active_page = active_page|default("feedback") %}
{% from 'buildTable.html' import sastable %}
{% from 'generalMacros.html' import login %}

{% block head %}
    <link rel="stylesheet" type="text/css" href="{{url_for('static',filename='css/index.css')}}">
    <link rel="stylesheet" type="text/css" href="{{url_for('static',filename='css/verticals.css')}}">
{% endblock head %}

{% block code %}

<script type='text/javascript'>
	
	// refresh the page (function to run after login)
	function reloadPage() {
		location.reload();
	}
	
	// promote ticket
	function promoteticket(ticketid) {
		
		$.post({
				url:'https://internal.sdss.org/inspection/marvin/feedback/ticket/promote',
				data: {'id':ticketid},
				headers: {u'content-type': u'application/x-www-form-urlencoded'},
				dataType: 'json'
			})
			.done(function(data){
				if (data.result['status'] < 0) {
					alert(data.result['message']);
				} else {
					alert('message', data.result['message']);
					alert('tracticket id', data.result['tracticketid']);
				}
			})
			.fail(function(data){
                alert("Error in response from Inspection webapp.  Please contact <EMAIL>");
			});			
		
	}
	
</script>
{% endblock code %}
{'fraction_non_alphanumeric': 0.18767967145790554, 'fraction_numerical': 0.0008213552361396304, 'mean_word_length': 4.002053388090349, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 13, 'https://': 2, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4143123', 'n_tokens_mistral': 901, 'n_tokens_neox': 754, 'n_words': 155}