<commit_before><h2>Versions</h2>

<%= @versions %><commit_msg>change view of versions page<commit_after><h2>Versions of <%= @app.bundle_id %></h2>

<% if @versions.count == 0 %>
	<h4>No version available.</h4>
	<h4>Please upload new apps in <%= link_to "Upload", "/admin/upload"%> page first.<h4>
<% else %>
	<table class="table table-bordered table-striped">
		<thead>
			<tr>
				<th>App Name</th>
				<th>Version</th>
				<th>Release Date</th>
				<th>Uploader</th>
				<th style="min-width:200px;max-width:300px">Change Log</th>
				<th>Download</th>
				<% if (can? :manage, App) %>
				<th>Manage</th>
				<% elsif (can? :read, App) %>
				<th>View</th>
				<% end %>
			</tr>
		</thead>

		<tbody>
			<% @versions.each do |version| %>
				<tr>
					<td><%= version.app_name %></td>
					<td><%= '#' + version.beta_version.to_s + ' ' + version.version + '(' + version.short_version + ')' %></td>
					<td><%= version.release_date.strftime('%m/%d/%Y %H:%M') %></td>
					<td><%= mail_to version.uploader_email %></td>
					<td style="min-width:200px;max-width:300px">
						<% display_change_log = version.change_log %>
						<% display_change_log = display_change_log[0, 45] + "..." if display_change_log.length > 45 %>
						<%= display_change_log %>
					</td>
					<td>ipa | dSYM</td>
					<% if (can? :manage, App) %>
					<td><%= link_to 'Edit', '/admin/appversion/' + version.id.to_s %> | <%= link_to 'Delete', '/admin/appversion/' + version.id.to_s + '/delete'%></td>
					<% elsif (can? :read, App) %>
					<td><%= link_to 'View', '/admin/appversion/' + version.id.to_s %></td>
					<% end %>
				</tr>
			<% end %>
		</tbody>
	</table>
<% end %>
{'fraction_non_alphanumeric': 0.23373493975903614, 'fraction_numerical': 0.01566265060240964, 'mean_word_length': 3.1318407960199006, 'pattern_counts': {'":': 0, '<': 77, '<?xml version=': 0, '>': 78, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4488589', 'n_tokens_mistral': 814, 'n_tokens_neox': 642, 'n_words': 121}