added icons to Enstyle and Destyle labels
This commit is contained in:
parent
5ea48cee2d
commit
12bd1ca41e
@ -22,6 +22,11 @@
|
|||||||
<script type="text/javascript" src="<?php print base_url_make('/js/jquery-ui.min.js')?>"></script>
|
<script type="text/javascript" src="<?php print base_url_make('/js/jquery-ui.min.js')?>"></script>
|
||||||
<link type="text/css" rel="stylesheet" href="<?php print base_url_make('/css/jquery-ui.css')?>" />
|
<link type="text/css" rel="stylesheet" href="<?php print base_url_make('/css/jquery-ui.css')?>" />
|
||||||
|
|
||||||
|
<?php
|
||||||
|
$enstyle_anchor_text = '<i class="fa fa-magic"></i> ' . $this->lang->line('Enstyle');
|
||||||
|
$destyle_anchor_text = '<i class="fa fa-times"></i> ' . $this->lang->line('Destyle');
|
||||||
|
?>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(function () {
|
$(function () {
|
||||||
<?php
|
<?php
|
||||||
@ -61,13 +66,13 @@ function showRawCode()
|
|||||||
if (showing_raw_code)
|
if (showing_raw_code)
|
||||||
{
|
{
|
||||||
|
|
||||||
$("#code_file_style_anchor").text("<?php print $this->lang->line('Destyle')?>");
|
$("#code_file_style_anchor").html('<?php print $destyle_anchor_text; ?>');
|
||||||
$("#code_file_mainarea_result_code").removeClass("prettyprinted");
|
$("#code_file_mainarea_result_code").removeClass("prettyprinted");
|
||||||
prettyPrint();
|
prettyPrint();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$("#code_file_style_anchor").text("<?php print $this->lang->line('Enstyle')?>");
|
$("#code_file_style_anchor").html('<?php print $enstyle_anchor_text ?>');
|
||||||
$("#code_file_mainarea_result_code").html($("#code_file_mainarea_result_raw").html());
|
$("#code_file_mainarea_result_code").html($("#code_file_mainarea_result_raw").html());
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -194,7 +199,7 @@ $this->load->view (
|
|||||||
print ' | ';
|
print ' | ';
|
||||||
print anchor (
|
print anchor (
|
||||||
"code/file/{$project->id}/${xpar}{$revreq}",
|
"code/file/{$project->id}/${xpar}{$revreq}",
|
||||||
$this->lang->line('Destyle'),
|
$destyle_anchor_text,
|
||||||
array('id' => 'code_file_style_anchor',
|
array('id' => 'code_file_style_anchor',
|
||||||
'onClick' => 'showRawCode(); return false;')
|
'onClick' => 'showRawCode(); return false;')
|
||||||
);
|
);
|
||||||
|
@ -7,10 +7,15 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
#code_folder_mainarea_result_table tr {
|
#code_folder_mainarea_result_table tr {
|
||||||
vertical-align: top;
|
vertical-align: middle;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#code_folder_mainarea_result_table tr th,
|
||||||
|
#code_folder_mainarea_result_table tr td {
|
||||||
|
padding: 0.2em 0.2em 0.2em 0.2em;
|
||||||
|
}
|
||||||
|
|
||||||
#code_folder_mainarea_result_readme {
|
#code_folder_mainarea_result_readme {
|
||||||
padding: 0.2em 0.2em 0.2em 0.2em;
|
padding: 0.2em 0.2em 0.2em 0.2em;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user