set the size of the LOC graph in the code file view

This commit is contained in:
hyung-hwan 2015-02-06 01:29:37 +00:00
parent 111c662dec
commit 7b799a6f2a
2 changed files with 7 additions and 2 deletions

View File

@ -262,11 +262,11 @@ if (array_key_exists('properties', $file) && count($file['properties']) > 0)
?>
</pre>
<div class="title">CLOC</div>
<div class="title">LOC</div>
<?php
/* TODO: show this if it's enabled in the user settings */
$graph_url = codepot_merge_path (site_url(), "/code/graph/cloc-file/{$project->id}/{$xpar}{$revreq}");
print "<img src='{$graph_url}' />";
print "<img src='{$graph_url}' id='code_file_mainarea_result_info_locgraph' />";
?>
</div> <!-- code_file_mainarea_result_info -->

View File

@ -92,6 +92,11 @@
text-transform: uppercase;
}
#code_file_mainarea_result_info_locgraph {
width: 21em;
height: auto;
}
/*-----------------------------------------------
* project source blame view
*-----------------------------------------------*/