enabled prettyprinting in various wiki formatting pages
This commit is contained in:
parent
812bdf6547
commit
cf220eb01a
@ -595,10 +595,12 @@ install-data-hook:
|
||||
$(INSTALL) -d "$(DESTDIR)@DEPOTDIR@/svnrepo"
|
||||
$(INSTALL) -d "$(DESTDIR)@DEPOTDIR@/files"
|
||||
$(INSTALL) -d "$(DESTDIR)@DEPOTDIR@/attachments"
|
||||
$(INSTALL) -d "$(DESTDIR)@DEPOTDIR@/usericons"
|
||||
$(INSTALL) -d "$(DESTDIR)@LOGDIR@"
|
||||
$(INSTALL) -d "$(DESTDIR)@CACHEDIR@"
|
||||
|
||||
uninstall-hook:
|
||||
$(RMDIR) "$(DESTDIR)@DEPOTDIR@/usericons"
|
||||
$(RMDIR) "$(DESTDIR)@DEPOTDIR@/attachments"
|
||||
$(RMDIR) "$(DESTDIR)@DEPOTDIR@/files"
|
||||
$(RMDIR) "$(DESTDIR)@DEPOTDIR@/svnrepo"
|
||||
|
@ -8,12 +8,17 @@
|
||||
|
||||
<script type="text/javascript" src="<?=base_url_make('/js/creole.js')?>"></script>
|
||||
|
||||
<script type="text/javascript" src="<?=base_url_make('/js/prettify/prettify.js')?>"></script>
|
||||
<script type="text/javascript" src="<?=base_url_make('/js/prettify/lang-css.js')?>"></script>
|
||||
<script type="text/javascript" src="<?=base_url_make('/js/prettify/lang-lisp.js')?>"></script>
|
||||
<script type="text/javascript" src="<?=base_url_make('/js/prettify/lang-lua.js')?>"></script>
|
||||
<script type="text/javascript" src="<?=base_url_make('/js/prettify/lang-sql.js')?>"></script>
|
||||
<script type="text/javascript" src="<?=base_url_make('/js/prettify/lang-vb.js')?>"></script>
|
||||
|
||||
<script type="text/javascript" src="<?=base_url_make('/js/jquery.min.js')?>"></script>
|
||||
<script type="text/javascript" src="<?=base_url_make('/js/jquery-ui.min.js')?>"></script>
|
||||
<link type="text/css" rel="stylesheet" href="<?=base_url_make('/css/jquery-ui.css')?>" />
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
function render_wiki(input_text)
|
||||
@ -24,6 +29,8 @@ function render_wiki(input_text)
|
||||
"<?=site_url()?>/wiki/show/<?=$project->id?>/",
|
||||
"<?=site_url()?>/wiki/attachment0/<?=$project->id?>/"
|
||||
);
|
||||
|
||||
prettyPrint ();
|
||||
}
|
||||
|
||||
$(function () {
|
||||
|
@ -8,6 +8,13 @@
|
||||
|
||||
<script type="text/javascript" src="<?=base_url_make('/js/creole.js')?>"></script>
|
||||
|
||||
<script type="text/javascript" src="<?=base_url_make('/js/prettify/prettify.js')?>"></script>
|
||||
<script type="text/javascript" src="<?=base_url_make('/js/prettify/lang-css.js')?>"></script>
|
||||
<script type="text/javascript" src="<?=base_url_make('/js/prettify/lang-lisp.js')?>"></script>
|
||||
<script type="text/javascript" src="<?=base_url_make('/js/prettify/lang-lua.js')?>"></script>
|
||||
<script type="text/javascript" src="<?=base_url_make('/js/prettify/lang-sql.js')?>"></script>
|
||||
<script type="text/javascript" src="<?=base_url_make('/js/prettify/lang-vb.js')?>"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
function render_wiki()
|
||||
{
|
||||
@ -17,6 +24,8 @@ function render_wiki()
|
||||
"<?=site_url()?>/wiki/show/<?=$project->id?>/",
|
||||
"<?=site_url()?>/wiki/attachment0/<?=$project->id?>/"
|
||||
);
|
||||
|
||||
prettyPrint ();
|
||||
}
|
||||
</script>
|
||||
|
||||
|
@ -8,6 +8,13 @@
|
||||
|
||||
<script type="text/javascript" src="<?=base_url_make('/js/creole.js')?>"></script>
|
||||
|
||||
<script type="text/javascript" src="<?=base_url_make('/js/prettify/prettify.js')?>"></script>
|
||||
<script type="text/javascript" src="<?=base_url_make('/js/prettify/lang-css.js')?>"></script>
|
||||
<script type="text/javascript" src="<?=base_url_make('/js/prettify/lang-lisp.js')?>"></script>
|
||||
<script type="text/javascript" src="<?=base_url_make('/js/prettify/lang-lua.js')?>"></script>
|
||||
<script type="text/javascript" src="<?=base_url_make('/js/prettify/lang-sql.js')?>"></script>
|
||||
<script type="text/javascript" src="<?=base_url_make('/js/prettify/lang-vb.js')?>"></script>
|
||||
|
||||
<script type="text/javascript" src="<?=base_url_make('/js/jquery.min.js')?>"></script>
|
||||
<script type="text/javascript" src="<?=base_url_make('/js/jquery-ui.min.js')?>"></script>
|
||||
<link type="text/css" rel="stylesheet" href="<?=base_url_make('/css/jquery-ui.css')?>" />
|
||||
@ -22,6 +29,7 @@ function render_wiki(input_text)
|
||||
"<?=site_url()?>/wiki/show/<?=$project->id?>/",
|
||||
"<?=site_url()?>/wiki/attachment0/<?=$project->id?>/"
|
||||
);
|
||||
prettyPrint ();
|
||||
}
|
||||
|
||||
$(function () {
|
||||
|
@ -7,6 +7,13 @@
|
||||
|
||||
<script type="text/javascript" src="<?=base_url_make('/js/creole.js')?>"></script>
|
||||
|
||||
<script type="text/javascript" src="<?=base_url_make('/js/prettify/prettify.js')?>"></script>
|
||||
<script type="text/javascript" src="<?=base_url_make('/js/prettify/lang-css.js')?>"></script>
|
||||
<script type="text/javascript" src="<?=base_url_make('/js/prettify/lang-lisp.js')?>"></script>
|
||||
<script type="text/javascript" src="<?=base_url_make('/js/prettify/lang-lua.js')?>"></script>
|
||||
<script type="text/javascript" src="<?=base_url_make('/js/prettify/lang-sql.js')?>"></script>
|
||||
<script type="text/javascript" src="<?=base_url_make('/js/prettify/lang-vb.js')?>"></script>
|
||||
|
||||
<script type="text/javascript" src="<?=base_url_make('/js/jquery.min.js')?>"></script>
|
||||
<script type="text/javascript" src="<?=base_url_make('/js/jquery-ui.min.js')?>"></script>
|
||||
<link type="text/css" rel="stylesheet" href="<?=base_url_make('/css/jquery-ui.css')?>" />
|
||||
@ -474,6 +481,8 @@ function render_wiki()
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
prettyPrint ();
|
||||
}
|
||||
</script>
|
||||
|
||||
|
@ -8,6 +8,13 @@
|
||||
|
||||
<script type="text/javascript" src="<?=base_url_make('/js/creole.js')?>"></script>
|
||||
|
||||
<script type="text/javascript" src="<?=base_url_make('/js/prettify/prettify.js')?>"></script>
|
||||
<script type="text/javascript" src="<?=base_url_make('/js/prettify/lang-css.js')?>"></script>
|
||||
<script type="text/javascript" src="<?=base_url_make('/js/prettify/lang-lisp.js')?>"></script>
|
||||
<script type="text/javascript" src="<?=base_url_make('/js/prettify/lang-lua.js')?>"></script>
|
||||
<script type="text/javascript" src="<?=base_url_make('/js/prettify/lang-sql.js')?>"></script>
|
||||
<script type="text/javascript" src="<?=base_url_make('/js/prettify/lang-vb.js')?>"></script>
|
||||
|
||||
<script type="text/javascript" src="<?=base_url_make('/js/jquery.min.js')?>"></script>
|
||||
<script type="text/javascript" src="<?=base_url_make('/js/jquery-ui.min.js')?>"></script>
|
||||
<link type="text/css" rel="stylesheet" href="<?=base_url_make('/css/jquery-ui.css')?>" />
|
||||
@ -21,6 +28,8 @@ function render_wiki(input_text)
|
||||
"<?=site_url()?>/wiki/show/<?=$project->id?>/",
|
||||
"<?=site_url()?>/wiki/attachment0/<?=$project->id?>/"
|
||||
);
|
||||
|
||||
prettyPrint ();
|
||||
}
|
||||
|
||||
$(function() {
|
||||
|
@ -9,12 +9,17 @@
|
||||
|
||||
<script type="text/javascript" src="<?=base_url_make('/js/creole.js')?>"></script>
|
||||
|
||||
<script type="text/javascript" src="<?=base_url_make('/js/prettify/prettify.js')?>"></script>
|
||||
<script type="text/javascript" src="<?=base_url_make('/js/prettify/lang-css.js')?>"></script>
|
||||
<script type="text/javascript" src="<?=base_url_make('/js/prettify/lang-lisp.js')?>"></script>
|
||||
<script type="text/javascript" src="<?=base_url_make('/js/prettify/lang-lua.js')?>"></script>
|
||||
<script type="text/javascript" src="<?=base_url_make('/js/prettify/lang-sql.js')?>"></script>
|
||||
<script type="text/javascript" src="<?=base_url_make('/js/prettify/lang-vb.js')?>"></script>
|
||||
|
||||
<script type="text/javascript" src="<?=base_url_make('/js/jquery.min.js')?>"></script>
|
||||
<script type="text/javascript" src="<?=base_url_make('/js/jquery-ui.min.js')?>"></script>
|
||||
<link type="text/css" rel="stylesheet" href="<?=base_url_make('/css/jquery-ui.css')?>" />
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
function render_wiki(input_text)
|
||||
@ -25,6 +30,8 @@ function render_wiki(input_text)
|
||||
"<?=site_url()?>/site/wiki/",
|
||||
"<?=site_url()?>/site/image/"
|
||||
);
|
||||
|
||||
prettyPrint ();
|
||||
}
|
||||
|
||||
$(function () {
|
||||
|
@ -8,6 +8,13 @@
|
||||
|
||||
<script type="text/javascript" src="<?=base_url_make('/js/creole.js')?>"></script>
|
||||
|
||||
<script type="text/javascript" src="<?=base_url_make('/js/prettify/prettify.js')?>"></script>
|
||||
<script type="text/javascript" src="<?=base_url_make('/js/prettify/lang-css.js')?>"></script>
|
||||
<script type="text/javascript" src="<?=base_url_make('/js/prettify/lang-lisp.js')?>"></script>
|
||||
<script type="text/javascript" src="<?=base_url_make('/js/prettify/lang-lua.js')?>"></script>
|
||||
<script type="text/javascript" src="<?=base_url_make('/js/prettify/lang-sql.js')?>"></script>
|
||||
<script type="text/javascript" src="<?=base_url_make('/js/prettify/lang-vb.js')?>"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
function render_wiki()
|
||||
{
|
||||
@ -17,6 +24,8 @@ function render_wiki()
|
||||
"<?=site_url()?>/site/wiki/",
|
||||
"<?=site_url()?>/site/image/"
|
||||
);
|
||||
|
||||
prettyPrint ();
|
||||
}
|
||||
</script>
|
||||
|
||||
|
@ -16,7 +16,7 @@ function show_taskbar ($con, $login)
|
||||
// check a file system may be faster than checking the database.
|
||||
$icon_src = '';
|
||||
$icon_path = CODEPOT_USERICON_DIR . '/' . $login['id'] . '.png';
|
||||
$icon_image = file_get_contents($icon_path);
|
||||
$icon_image = @file_get_contents($icon_path);
|
||||
if ($icon_image)
|
||||
{
|
||||
$icon_src = sprintf (
|
||||
|
@ -8,6 +8,13 @@
|
||||
|
||||
<script type="text/javascript" src="<?=base_url_make('/js/creole.js')?>"></script>
|
||||
|
||||
<script type="text/javascript" src="<?=base_url_make('/js/prettify/prettify.js')?>"></script>
|
||||
<script type="text/javascript" src="<?=base_url_make('/js/prettify/lang-css.js')?>"></script>
|
||||
<script type="text/javascript" src="<?=base_url_make('/js/prettify/lang-lisp.js')?>"></script>
|
||||
<script type="text/javascript" src="<?=base_url_make('/js/prettify/lang-lua.js')?>"></script>
|
||||
<script type="text/javascript" src="<?=base_url_make('/js/prettify/lang-sql.js')?>"></script>
|
||||
<script type="text/javascript" src="<?=base_url_make('/js/prettify/lang-vb.js')?>"></script>
|
||||
|
||||
<script type="text/javascript" src="<?=base_url_make('/js/jquery.min.js')?>"></script>
|
||||
<script type="text/javascript" src="<?=base_url_make('/js/jquery-ui.min.js')?>"></script>
|
||||
<link type="text/css" rel="stylesheet" href="<?=base_url_make('/css/jquery-ui.css')?>" />
|
||||
@ -26,6 +33,8 @@ function render_wiki(input_text)
|
||||
"<?=site_url()?>/wiki/show/<?=$project->id?>/",
|
||||
"<?=site_url()?>/wiki/attachment/<?=$project->id?>/<?=$hexname?>/"
|
||||
);
|
||||
|
||||
prettyPrint ();
|
||||
}
|
||||
|
||||
var new_attachment_no = 0;
|
||||
|
@ -334,14 +334,14 @@
|
||||
#code_diff_mainarea_result_fulldiffold {
|
||||
border: none;
|
||||
//padding-left: 10px;
|
||||
//background: #F8FAF8;
|
||||
//background: #F8F8FA;
|
||||
padding-left: 1px;
|
||||
}
|
||||
|
||||
#code_diff_mainarea_result_fulldiffnew {
|
||||
border: none;
|
||||
//padding-left: 10px;
|
||||
background: #F8F8FA;
|
||||
background: #FEF8F8;
|
||||
padding-left: 1px;
|
||||
}
|
||||
|
||||
|
@ -116,9 +116,6 @@ body {
|
||||
padding-right: 5px;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.content .projectbar {
|
||||
/*margin: 0.1em 0em 0em 0em;*/
|
||||
padding: 0.5em 0.5em 0.5em 0.5em;
|
||||
@ -266,14 +263,19 @@ body {
|
||||
|
||||
.content .mainarea pre {
|
||||
/*padding: .3em .3em .3em .3em;*/
|
||||
border: 1px dashed #BBCCDD;
|
||||
background-color: #F1F1FF;
|
||||
/*border: 1px dashed #BBCCDD;*/
|
||||
/*background-color: #F1F1FF;*/
|
||||
border: none;
|
||||
background-color: #F8F8FA;
|
||||
overflow: auto;
|
||||
width: inherit;
|
||||
}
|
||||
|
||||
.content .mainarea pre.wiki {
|
||||
white-space: pre-wrap;
|
||||
padding: 1em;
|
||||
line-height: 1.5em;
|
||||
font-size: 1.1em;
|
||||
}
|
||||
|
||||
.content .mainarea tt {
|
||||
@ -364,11 +366,12 @@ body {
|
||||
.content .mainarea pre.prettyprint {
|
||||
/* anything that make prettyprint area different from other pres? */
|
||||
/*background-color: #FFFFFF;*/
|
||||
background: white;
|
||||
font-size: 12px;
|
||||
line-height: 1.5;
|
||||
border: 1px solid #ccc;
|
||||
padding: 10px;
|
||||
/*border: 1px solid #ccc;*/
|
||||
background-color: #F8F8FA;
|
||||
border: none;
|
||||
font-size: 1.1em;
|
||||
line-height: 1.5em;
|
||||
padding: 1em;
|
||||
|
||||
tab-size: 5;
|
||||
-moz-tab-size: 5;
|
||||
|
Loading…
Reference in New Issue
Block a user