Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
<div class="scrollbar" id="scrollbar">
	<ol class="tree">
		#foreach($object in $allobjects)


		#if(!$object.getVersions().last().getRevisionDate().before($date))
		<!-- do nothing -->
		#else

		#if($object.isDirectory())

		<li class="folder">
			<label for="$object.toString()">
				<a style="color: #333"
					href="$serverURL/$identifierType/$internalId/$object.getID()/$object.getVersionByDate($date).getRevision()/$reviewerCode">$object.toString()</a>
				<a
					href="$serverURL/$identifierType/$internalId/$object.getID()/$object.getVersionByDate($date).getRevision()/$reviewerCode/ZIP"
					target="_blank">
					<i class="fa fa-download" title="download as zip"></i>
				</a>
			</label>

		</li>

		#else
		<li class="myfile">
			<a style="color: #333" id="$object.toString()"
				href="$serverURL/$identifierType/$internalId/$object.getID()/$object.getVersionByDate($date).getRevision()/$reviewerCode">$object.toString()</a>
			<a
				href="$serverURL/$identifierType/$internalId/$object.getID()/$object.getVersionByDate($date).getRevision()/$reviewerCode/DOWNLOAD"
				target="_blank">
				<i class="fa fa-download" title="download"></i>
			</a>
		</li>
		#end
		#end
		#end
	</ol>
</div>
<script type="text/javascript">
	window.onload = function()
	{
	var divObject =
	document.getElementById('scrollbar');
	divObject.scrollTop =
	divObject.scrollHeight;

	$(function () {
	$("#ballsWaveG").hide();
	});

	}
</script>
New to GrepCode? Check out our FAQ X