<commit_before><form action="/admin/cms/pictures" class="well" method="post">
	<div>
		<%= token_tag %>
		<input type="hidden" name="picture[imageable_id]" value="<%= object.id %>"/>
		<input type="hidden" name="picture[imageable_type]" value="<%= object.class.to_s.downcase %>"/>
		<input type="hidden" name="redirect" value="<%= request.fullpath %>">
		
    	<div>
          <input type="text" name="picture[file_path]" placeholder="select a picture" id="imageFile" class="col-md-6"> &nbsp;
          <input type="button" value="Browse Server" class="btn btn-sm btn-primary" onclick="javascript:BrowseServer();">
        </div>
        <div style="margin-top: 6px;">
            <input type="text" name="picture[caption]" placeholder="Caption for picture (optional)" class="col-md-6">  &nbsp;
            <input type="submit" class="btn btn-sm btn-success" value="Add">
        </div>
	</div>
</form>

<table class="table table-striped table-condensed">
	<tr>
		<th>Picture</th>
		<th>Caption</th>
		<th>Sort</th>
		<th>&nbsp;</th>
	</tr>
	<%
	i = 0
	pictures = object.pictures.order('sort')

	pictures.order('sort').each do |pic| 
		i = i+1%>
	<tr>
		<td>
			<a href="<%= cdn_image_url pic, 700, 600, 0 %>"  data-lightbox="image-1">
				<img class="img-thumbnail" src="<%= cdn_image_url pic, 90, 90, 0 %>"/>
			</a>
		</td>
		<td><%= pic.sort %>: <%= pic.caption %></td>
		<td>
			<% unless i == 1%>
			<%= link_to raw('<i class="icon-circle-arrow-up"></i>'), moveup_admin_cms_picture_path(pic) %>
			<% end %>
			<% unless i == pictures.length %>
			<%= link_to raw('<i class="icon-circle-arrow-down"></i>'), movedown_admin_cms_picture_path(pic) %>
			<% end %>
		</td>
		<td><%= link_to "delete", { action: "destroy", controller: "cms/pictures", id: pic.id }, method: :delete %></td>
	<% end %>
</table>
<commit_msg>imagelist update<commit_after><form action="/admin/cms/pictures" class="well" method="post">
	<div>
		<%= token_tag %>
		<input type="hidden" name="picture[imageable_id]" value="<%= object.id %>"/>
		<input type="hidden" name="picture[imageable_type]" value="<%= object.class.to_s.downcase %>"/>
		<input type="hidden" name="redirect" value="<%= request.fullpath %>">
		
    	<div>
          <input type="text" name="picture[file_path]" placeholder="select a picture" id="imageFile" class="col-md-6"> &nbsp;
          <input type="button" value="Browse Server" class="btn btn-sm btn-primary" onclick="javascript:BrowseServer();">
        </div>
        <div style="margin-top: 6px;">
            <input type="text" name="picture[caption]" placeholder="Caption for picture (optional)" class="col-md-6">  &nbsp;
            <input type="submit" class="btn btn-sm btn-success" value="Add">
        </div>
	</div>
</form>

<table class="table table-striped table-condensed">
	<tr>
		<th>Picture</th>
		<th>Caption</th>
		<th>Sort</th>
		<th>&nbsp;</th>
	</tr>
	<%
	i = 0
	pictures = object.pictures.order('sort')

	pictures.order('sort').each do |pic| 
		i = i+1%>
	<tr>
		<td>
			<a href="<%= cdn_image_url pic, 700, 600, 0 %>"  data-lightbox="image-1">
				<img class="img-thumbnail" src="<%= cdn_image_url pic, 90, 90, 0 %>"/>
			</a>
		</td>
		<td><%= pic.sort %>: <%= pic.caption %></td>
		<td>
		<% unless i == 1 %>
		  <%= link_to raw('<i class="fa fa-chevron-up"></i>'), moveup_admin_cms_picture_path(pic) %>
		<% end %>
		<% unless i == pictures.length %>
		  <%= link_to raw('<i class="fa fa-chevron-down"></i>'), movedown_admin_cms_picture_path(pic) %>
		<% end %>
		</td>
		<td><%= link_to "delete", { action: "destroy", controller: "cms/pictures", id: pic.id }, method: :delete %></td>
	<% end %>
</table>

{'fraction_non_alphanumeric': 0.22552255225522552, 'fraction_numerical': 0.010451045104510451, 'mean_word_length': 3.8818791946308724, 'pattern_counts': {'":': 0, '<': 123, '<?xml version=': 0, '>': 123, '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': '2755571', 'n_tokens_mistral': 1520, 'n_tokens_neox': 1325, 'n_words': 275}