<commit_before><!-- extend base layout -->
{% extends "base.html" %}

{% block content %}
<body id = "resources_p">
	<div class="row">
		<h1 class="page-header" id="edit-resources-header">All Food Resources</h1>
    	<hr align="center">
  	</div>

  	<!-- Pending Food Resources --> 
	<div class="row">
		<div class="small-12 columns">
		    <h2>Pending Food Resources</h2>
		    <hr align="center">
		</div>
	</div>

	{% if food_resource_contacts|count == 0 %}
 	<div class="row">
 		<div class="small-12 columns">
 			None.
	    </div>
	</div>
	{% else %}
  	<div class="large-centered 
         large-8 medium-centered medium-8 small-8 small-centered
         columns resources">
	{% for contact in food_resource_contacts %}
	{% set name_without_spaces = contact.name.replace(" ", "-") %}
	<div id="{{ name_without_spaces }}">
		<div class="block-header" id="{{ name_without_spaces }}-header">
			<table>
			  	<thead>
			    	<tr>
			      		<th width="200" class="expand-food-resource-type-pending" id="food-resource-type-expand-pending-{{ name_without_spaces }}">+</th>
			      		<th width="100%">{{ contact.name }}</th>	
			    	</tr>
			  	</thead>
			</table>
		</div>
		<div class="admin-food-resource-type-pending" id="{{ name_without_spaces }}-table-pending">
			{% for resource in contact.food_resource %}

			<div class="resource"> 

			<!-- Resource header --> 
			  <div class= "row" id="food-resource-pending-{{ resource.id }}">
				<div class="small-1 columns expand-food-resource-pending" id="food-resource-expand-pending-{{ resource.id }}">
					+
				</div>
				<div class="small-7 columns">
					{{ resource.name }}
				</div>
				<div class="small-2 columns">
					<div id="{{ resource.id }}-approve" class="food-resource-update-button">Approve</div>
				</div>
				<div class="small-2 columns">
					<div id="{{ resource.id }}-remove" class="food-resource-update-button">Reject</div>
				</div>
			</div>
			<!-- Resource content --> 
			<div class="row admin-food-resource-pending" id="food-resource-{{ resource.id }}-table-pending">
				<div class="large-6 small-12 columns">
					<div class="row">
						<div class="small-3 columns">
							Name:
						</div>
						<div class="small-9 columns">
							{{ resource.name }}<commit_msg>Users have to confirm that they want to reject a proposed food resource.<commit_after><!-- extend base layout -->
{% extends "base.html" %}

{% block content %}
<body id = "resources_p">
	<div class="row">
		<h1 class="page-header" id="edit-resources-header">All Food Resources</h1>
    	<hr align="center">
  	</div>

  	<!-- Pending Food Resources --> 
	<div class="row">
		<div class="small-12 columns">
		    <h2>Pending Food Resources</h2>
		    <hr align="center">
		</div>
	</div>

	{% if food_resource_contacts|count == 0 %}
 	<div class="row">
 		<div class="small-12 columns">
 			None.
	    </div>
	</div>
	{% else %}
  	<div class="large-centered 
         large-8 medium-centered medium-8 small-8 small-centered
         columns resources">
	{% for contact in food_resource_contacts %}
	{% set name_without_spaces = contact.name.replace(" ", "-") %}
	<div id="{{ name_without_spaces }}">
		<div class="block-header" id="{{ name_without_spaces }}-header">
			<table>
			  	<thead>
			    	<tr>
			      		<th width="200" class="expand-food-resource-type-pending" id="food-resource-type-expand-pending-{{ name_without_spaces }}">+</th>
			      		<th width="100%">{{ contact.name }}</th>	
			    	</tr>
			  	</thead>
			</table>
		</div>
		<div class="admin-food-resource-type-pending" id="{{ name_without_spaces }}-table-pending">
			{% for resource in contact.food_resource %}

			<div class="resource"> 

			<!-- Resource header --> 
			  <div class= "row" id="food-resource-pending-{{ resource.id }}">
				<div class="small-1 columns expand-food-resource-pending" id="food-resource-expand-pending-{{ resource.id }}">
					+
				</div>
				<div class="small-7 columns">
					{{ resource.name }}
				</div>
				<div class="small-2 columns">
					<div id="{{ resource.id }}-approve" class="food-resource-update-button">Approve</div>
				</div>
				<div class="small-2 columns">
					<a id="{{ resource.id }}-remove" class="food-resource-update-button" href="#modal">Reject</a>
				</div>
			</div>
			<!-- Resource content --> 
			<div class="row admin-food-resource-pending" id="food-resource-{{ resource.id }}-table-pending">
				<div class="large-6 small-12 columns">
					<div class="row">
						<div class="small-3 columns">
							Name:
						</div>
						<div class="small-9 columns">
							{{ resource.name }}
{'fraction_non_alphanumeric': 0.19268451992161986, 'fraction_numerical': 0.011757021554539516, 'mean_word_length': 2.9913119026933104, 'pattern_counts': {'":': 0, '<': 117, '<?xml version=': 0, '>': 117, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '1537451', 'n_tokens_mistral': 1829, 'n_tokens_neox': 1502, 'n_words': 335}