Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # HG changeset patch
- # User César Izurieta <cesar@caih.org>
- # Date 1322595723 18000
- # Node ID ea4da81a56eb7a2c74f1860608506f236861ed5e
- # Parent 895fc07e8bdd38d816a8b9bdf74d3876517446ed
- [mq]: RhodeCode
- diff --git a/templates/rhodecode/html_css.tpl b/templates/rhodecode/html_css.tpl
- new file mode 100644
- --- /dev/null
- +++ b/templates/rhodecode/html_css.tpl
- @@ -0,0 +1,9 @@
- +
- + <link rel="stylesheet" type="text/css" href="{$path}css/{config_get option='css_include_file'}" />
- + <link rel="stylesheet" type="text/css" href="{$path}css/jquery-ui.css" />
- + <link rel="stylesheet" type="text/css" href="{$path}css/common_config.php" />
- + <link rel="stylesheet" type="text/css" href="{$path}css/status_config.php" />
- + {* Add right-to-left css if needed *}
- + {if $directionality == 'rtl'}<link rel="stylesheet" type="text/css" href="{$path}css/{config_get option='css_rtl_include_file'|escape:'html'}" />{/if}
- + {foreach from=$g_stylesheets_included item=t_stylesheet_path }<link rel="stylesheet" type="text/css" href="{$path}css/{$t_stylesheet_path|escape:'html'}" />{/foreach}
- +
- diff --git a/templates/rhodecode/html_footer.tpl b/templates/rhodecode/html_footer.tpl
- new file mode 100644
- --- /dev/null
- +++ b/templates/rhodecode/html_footer.tpl
- @@ -0,0 +1,33 @@
- +<div id="footer">
- + <div id="footer-inner" class="title">
- + <div id="footer">
- + <p class="footer-link">
- + {* Show optional user-specificed custom copyright statement *}
- + {if $copyright_statement}
- + <address id="user-copyright">$t_copyright_statement</address>
- + {/if}
- +
- + {* Show MantisBT version and copyright statement *}
- + <address id="mantisbt-copyright">Powered by <a href="http://www.mantisbt.org" title="Mantis Bug Tracker: a free and open source web based bug tracking system.">Mantis Bug Tracker</a> (MantisBT){$t_version_suffix}. Copyright ©{$t_copyright_years} MantisBT contributors. Licensed under the terms of the <a href="http://www.gnu.org/licenses/old-licenses/gpl-2.0.html" title="GNU General Public License (GPL) version 2">GNU General Public License (GPL) version 2</a> or a later version.</address>
- +
- + {* Show contact information *}
- + <address id="webmaster-contact-information">{lang_get string='webmaster_contact_information'}{config_get option='webmaster_email'}</address>
- + </p>
- + <p class="footer-link-right">
- + <div id="powered-by-mantisbt-logo">
- + <a href="http://www.mantisbt.org" title="Mantis Bug Tracker: a free and open source web based bug tracking system."><img src="{$short_path}images/mantis_logo_button.gif" width="88" height="35" alt="Powered by Mantis Bug Tracker: a free and open source web based bug tracking system." /></a>
- + </div>
- + </p>
- + </div>
- + </div>
- +</div>
- +
- +
- +{if $t_page_execution_time}<p id="page-execution-time">$t_page_execution_time</p>{/if}
- +{if $t_page_memory_usage}<p id="page-memory-usage">$t_page_memory_usage</p>{/if}
- +{if $t_total_queries_executed}<p id="total-queries-count">$t_total_queries_executed</p>{/if}
- +{if $t_unique_queries_executed}<p id="unique-queries-count">$t_unique_queries_executed</p>{/if}
- +{if $t_total_query_time}<p id="total-query-execution-time">$t_total_query_time</p>{/if}
- +
- +{$log_events}
- +
- diff --git a/templates/rhodecode/html_head_javascript.tpl b/templates/rhodecode/html_head_javascript.tpl
- new file mode 100644
- --- /dev/null
- +++ b/templates/rhodecode/html_head_javascript.tpl
- @@ -0,0 +1,10 @@
- +
- + <script type="text/javascript" src="{$short_path}/javascript_config.php"></script>
- + <script type="text/javascript" src="{$short_path}/javascript_translations.php"></script>
- + <script type="text/javascript" src="{$short_path}/javascript/jquery.js"></script>
- + <script type="text/javascript" src="{$short_path}/javascript/jquery-ui.js"></script>
- + <script type="text/javascript" src="{$short_path}/javascript/common.js"></script>
- + {foreach from=$g_scripts_included item=p_filename}
- + <script type="text/javascript" src="{$short_path}/javascript/{$p_filename|escape:'html'}"></script>
- + {/foreach}
- +
- diff --git a/templates/rhodecode/html_login_info.tpl b/templates/rhodecode/html_login_info.tpl
- new file mode 100644
- --- /dev/null
- +++ b/templates/rhodecode/html_login_info.tpl
- @@ -0,0 +1,64 @@
- + <!-- user -->
- + <ul id="logged-user">
- + <li class="first">
- +
- + {if current_user_is_anonymous() }
- + <div id="quick_login" style="display:none">
- + <form action="/_admin/login?came_from=%2F" method="post">
- + <div class="form">
- + <div class="fields">
- + <div class="field">
- + <div class="label">
- + <label for="username">Username:</label>
- + </div>
- + <div class="input">
- + <input class="focus" id="username" name="username" size="40" type="text" />
- + </div>
- +
- + </div>
- + <div class="field">
- + <div class="label">
- + <label for="password">Password:</label>
- + </div>
- + <div class="input">
- + <input class="focus" id="password" name="password" size="40" type="password" />
- + </div>
- +
- + </div>
- + <div class="buttons">
- + <div class="password_forgoten"><a href="/_admin/password_reset">Forgot password ?</a></div>
- + <div class="register">
- + <a href="{$path}signup_page.php">Don't have an account ?</a>
- + </div>
- + {if $allow_signup}
- + <span id="signup-link"><a href="{$path}signup_page.php">{lang_get string='signup_link'}</a></span>
- + {/if}
- + </div>
- + </div>
- + </div>
- + </form>
- + </div>
- + {/if}
- +
- + <div class="gravatar">
- + <img alt="gravatar" src="http://www.gravatar.com/avatar/XXX?s=20&d=identicon" />
- + </div>
- + <div class="account">
- + {if current_user_is_anonymous() }
- + <a href="{$path}login_page.php?return={$t_return_page}" title="RhodeCode Admin">{lang_get string='anonymous'}</a>
- + {else}
- + <a href="{$path}account_page.php" title="{$t_realname|escape:'html'}">{$t_username}</a>
- + {/if}
- + </div>
- + </li>
- + <li>
- + <a href="{$short_path}main_page.php">{lang_get string='main_link'}</a>
- + </li>
- + <li>
- + <a href="{$rhodecode_path}">RhodeCode</a>
- + </li>
- + <li class="last highlight"><a id="logout-link" href="{$short_path}logout_page.php">{lang_get string='logout_link'}</a></li>
- + </ul>
- + <!-- end user -->
- +
- +
- diff --git a/templates/rhodecode/html_menu.tpl b/templates/rhodecode/html_menu.tpl
- new file mode 100644
- --- /dev/null
- +++ b/templates/rhodecode/html_menu.tpl
- @@ -0,0 +1,46 @@
- + <!-- box / title -->
- + <div class="title">
- + <ul class="links">
- + {foreach from=$t_menu_plugin_pre_options item=t_menu_option}
- + <li>
- + <span>{$t_menu_option}</span>
- + </li>
- + {/foreach}
- + {foreach from=$t_menu_options item=t_menu_option}
- + <li>
- + <span>{$t_menu_option}</span>
- + </li>
- + {/foreach}
- + {foreach from=$t_menu_plugin_post_options item=t_menu_option}
- + <li>
- + <span>{$t_menu_option}</span>
- + </li>
- + {/foreach}
- + </ul>
- + </div>
- + <!-- end box / title -->
- +
- + {if $t_show_project_selector }
- + <form method="post" id="form-set-project" action="{$short_path}set_project.php">
- + <fieldset id="project-selector">
- + {* CSRF protection not required here - form does not result in modifications *}
- + <label for="form-set-project-id">{lang_get string='email_project'}</label>
- + <select id="form-set-project-id" name="project_id">
- + {$project_option_list}
- + </select>
- + <input type="submit" class="button" value="{lang_get string='switch'}" />
- + </fieldset>
- + </form>
- + {/if}
- +
- + {if auth_is_user_authenticated()}
- + <form method="post" action="{$short_path}jump_to_bug.php" class="bug-jump-form">
- + <fieldset class="bug-jump">
- + {* CSRF protection not required here - form does not result in modifications *}
- + <input type="hidden" name="bug_label" value="{lang_get string='issue_id'}" />
- + <input type="text" name="bug_id" size="10" class="small" />
- + <input type="submit" class="button-small" value="{lang_get string='jump'}" />
- + </fieldset>
- + </form>
- + {/if}
- +
- diff --git a/templates/rhodecode/html_top_banner.tpl b/templates/rhodecode/html_top_banner.tpl
- new file mode 100644
- --- /dev/null
- +++ b/templates/rhodecode/html_top_banner.tpl
- @@ -0,0 +1,15 @@
- +
- + {if $t_page }
- + {include_php file=$t_page};
- + {elseif $t_show_logo }
- + <div id="banner">
- + {if $t_show_url }
- + <a id="logo-link" href="{config_get option='logo_url'|escape:'html'}">
- + {/if}
- + <img id="logo-image" alt="Mantis Bug Tracker" src="{$path}{config_get option='logo_image'|escape:'html'}" />
- + {if $t_show_url}
- + </a>
- + {/if}
- + </div>
- + {/if}
- +
- diff --git a/templates/rhodecode/main.tpl b/templates/rhodecode/main.tpl
- new file mode 100644
- --- /dev/null
- +++ b/templates/rhodecode/main.tpl
- @@ -0,0 +1,106 @@
- +{assign var='rhodecode_path' value='https://hg.fit-bank.com/'}
- +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
- +<html xmlns="http://www.w3.org/1999/xhtml">
- + <head>
- + <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
- + <meta name="robots" content="index, nofollow"/>
- + <link rel="icon" href="/images/icons/database_gear.png" type="image/png" />
- +
- + <link rel="stylesheet" type="text/css" href="{$rhodecode_path}/css/style.css" media="screen"/>
- + <link rel="stylesheet" type="text/css" href="{$rhodecode_path}/css/pygments.css"/>
- + <link rel="stylesheet" type="text/css" href="{$rhodecode_path}/css/diff.css"/>
- + {include file='html_css.tpl'}
- +
- + <meta http-equiv="Content-type" content="application/xhtml+xml; charset=UTF-8" />
- + {include_php file=$meta_include_file}
- +
- + {if $g_robots_meta}<meta name="robots" content="{$g_robots_meta}" />{/if}
- +
- + {if $g_rss_feed_url}<link rel="alternate" type="application/rss+xml" title="RSS" href="{$g_rss_feed_url}" />{/if}
- +
- + {if $t_favicon_image}<link rel="shortcut icon" href="{$short_path}{$t_favicon_image}" type="image/x-icon" />{/if}
- +
- + <link rel="search" type="application/opensearchdescription+xml" title="MantisBT: Text Search" href="{$path}/browser_search_plugin.php?type=text" />
- + <link rel="search" type="application/opensearchdescription+xml" title="MantisBT: Issue Id" href="{$path}/browser_search_plugin.php?type=id" />
- +
- + <title>{$t_title}</title>
- +
- + {include file='html_head_javascript.tpl'}
- +
- + {if $t_url}
- + <meta http-equiv="Refresh" content="{$p_time};URL={$t_url}" />
- + {/if}
- +
- + </head>
- +<body id="body">
- +
- +
- +<!-- HEADER -->
- +<div id="header">
- + {include file='html_login_info.tpl'}
- +
- + <div id="header-inner" class="title">
- + <div id="logo">
- + <h1><a href="/">Fitbank Mantis</a></h1>
- + </div>
- +
- + <!-- MENU -->
- + <ul id="quick">
- + {if $rss_enabled}
- + <li>
- + <a title="{lang_get string='change_preferences_link'}">
- + <span class="icon">
- + <img src="{$rhodecode_path}images/icons/cog_edit.png" alt="{lang_get string='change_preferences_link'}" title="{lang_get string='change_preferences_link'}" />
- + </span>
- + <span>{lang_get string='change_preferences_link'}</span>
- + </a>
- + <ul>
- + {foreach from=$t_menu_extra_options item=t_menu_option}
- + <li>{$t_menu_option}</li>
- + {/foreach}
- + </ul>
- + </li>
- + <li>
- + {* Link to RSS issues feed for the selected project, including authentication details. *}
- + <a title="{lang_get string='rss'}" href="{$rss_get_issues_feed_url|escape:'html'}">
- + <span class="icon">
- + <img src="{$short_path}/images/rss.png" alt="{lang_get string='rss'}" title="{lang_get string='rss'}" />
- + </span>
- + <span>{lang_get string='rss'}</span>
- + </a>
- + </li>
- + {/if}
- + </ul>
- + <!-- END MENU -->
- + </div>
- +</div>
- +<!-- END HEADER -->
- +
- +<!-- CONTENT -->
- +<div id="mantis">
- +<div id="content">
- + <div class="flash_msg">
- +
- + </div>
- + <div id="main">
- +
- +
- + <div class="box">
- + {include file='html_menu.tpl'}
- +
- + <div id="content">
- + {$content}
- + </div>
- +
- + </div>
- +</div>
- +</div>
- +</div>
- +<!-- END CONTENT -->
- +
- +<!-- FOOTER -->
- +{include file='html_footer.tpl'}
- +<!-- END FOOTER -->
- +
- + </body>
- +</html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement