Skip to content

Commit

Permalink
update links
Browse files Browse the repository at this point in the history
  • Loading branch information
mjnaderi committed Mar 27, 2015
1 parent feb0920 commit 7ca3101
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 26 deletions.
4 changes: 2 additions & 2 deletions application/controllers/Install.php
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ public function index()
array('shj_key' => 'submit_penalty', 'shj_value' => '300'),
array('shj_key' => 'enable_registration', 'shj_value' => '0'),
array('shj_key' => 'registration_code', 'shj_value' => '0'),
array('shj_key' => 'mail_from', 'shj_value' => 'shj@sharifjudge.ir'),
array('shj_key' => 'mail_from', 'shj_value' => 'shj@example.com'),
array('shj_key' => 'mail_from_name', 'shj_value' => 'Sharif Judge'),
array('shj_key' => 'reset_password_mail', 'shj_value' => "<p>\nSomeone requested a password reset for your Sharif Judge account at {SITE_URL}.\n</p>\n<p>\nTo change your password, visit this link:\n</p>\n<p>\n<a href=\"{RESET_LINK}\">Reset Password</a>\n</p>\n<p>\nThe link is valid for {VALID_TIME}. If you don't want to change your password, just ignore this email.\n</p>"),
array('shj_key' => 'add_user_mail', 'shj_value' => "<p>\nHello! You are registered in Sharif Judge at {SITE_URL} as {ROLE}.\n</p>\n<p>\nYour username: {USERNAME}\n</p>\n<p>\nYour password: {PASSWORD}\n</p>\n<p>\nYou can log in at <a href=\"{LOGIN_URL}\">{LOGIN_URL}</a>\n</p>"),
Expand Down Expand Up @@ -276,4 +276,4 @@ public function index()
$this->twig->display('pages/admin/install.twig', $data);

}
}
}
16 changes: 8 additions & 8 deletions application/views/pages/admin/add_assignment.twig
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@

{% block title_menu %}
<span class="title_menu_item">
<a href="http://docs.sharifjudge.ir/en:v1.4:add_assignment" target="_blank"><i class="fa fa-question-circle color1"></i> Help</a>
<a href="https://github.com/mjnaderi/Sharif-Judge/blob/docs/v1.4/add_assignment.md" target="_blank"><i class="fa fa-question-circle color1"></i> Help</a>
</span>
{% endblock %}

Expand Down Expand Up @@ -120,7 +120,7 @@
<p class="input_p clear">
<label for="form_tests_desc">Tests and Descriptions (zip file)<br>
<span class="form_comment">
<a href="http://docs.sharifjudge.ir/en:v1.4:tests_structure" target="_blank">Use this structure</a>
<a href="https://github.com/mjnaderi/Sharif-Judge/blob/docs/v1.4/tests_structure.md" target="_blank">Use this structure</a>
</span>
</label>
<input id="form_tests_desc" type="file" name="tests_desc" class="sharif_input medium"/>
Expand Down Expand Up @@ -154,7 +154,7 @@
{{ form_error('javaexceptions', '<div class="shj_error">', '</div>') }}
</p>
<p class="input_p">
<label for="form_late_rule">Coefficient rule (<a target="_blank" href="http://docs.sharifjudge.ir/en:v1.4:add_assignment#coefficient_rule">?</a>)</label><br>
<label for="form_late_rule">Coefficient rule (<a target="_blank" href="https://github.com/mjnaderi/Sharif-Judge/blob/docs/v1.4/add_assignment.md#coefficient-rule">?</a>)</label><br>
<span class="form_comment medium clear" style="display: block;">PHP script without &lt;?php ?&gt; tags</span>
<textarea id="form_late_rule" name="late_rule" rows="20" class="sharif_input add_text">{{ edit ? edit_assignment.late_rule : set_value('late_rule', default_late_rule) }}</textarea>
{{ form_error('late_rule', '<div class="shj_error">', '</div>') }}
Expand All @@ -169,10 +169,10 @@
<th rowspan="2">Score</th>
<th colspan="3" style="border-bottom: 1px solid #BDBDBD">Time Limit (ms)</th>
<th rowspan="2">Memory<br>Limit (kB)</th>
<th rowspan="2">Allowed<br>Languages (<a target="_blank" href="http://docs.sharifjudge.ir/en:v1.4:add_assignment#allowed_languages">?</a>)</th>
<th rowspan="2">Diff<br>Command (<a target="_blank" href="http://docs.sharifjudge.ir/en:v1.4:add_assignment#diff_command">?</a>)</th>
<th rowspan="2">Diff<br>Argument (<a target="_blank" href="http://docs.sharifjudge.ir/en:v1.4:add_assignment#diff_arguments">?</a>)</th>
<th rowspan="2">Upload<br>Only (<a target="_blank" href="http://docs.sharifjudge.ir/en:v1.4:add_assignment#upload_only">?</a>)</th>
<th rowspan="2">Allowed<br>Languages (<a target="_blank" href="https://github.com/mjnaderi/Sharif-Judge/blob/docs/v1.4/add_assignment.md#allowed-languages">?</a>)</th>
<th rowspan="2">Diff<br>Command (<a target="_blank" href="https://github.com/mjnaderi/Sharif-Judge/blob/docs/v1.4/add_assignment.md#diff-command">?</a>)</th>
<th rowspan="2">Diff<br>Argument (<a target="_blank" href="https://github.com/mjnaderi/Sharif-Judge/blob/docs/v1.4/add_assignment.md#diff-arguments">?</a>)</th>
<th rowspan="2">Upload<br>Only (<a target="_blank" href="https://github.com/mjnaderi/Sharif-Judge/blob/docs/v1.4/add_assignment.md#upload-only">?</a>)</th>
<th rowspan="2"></th>
</tr>
<tr>
Expand Down Expand Up @@ -212,4 +212,4 @@
<input type="submit" value="{{ edit ? 'Edit' : 'Add' }} Assignment" class="sharif_input"/>
</p>
</form>
{% endblock %} {# main_content #}
{% endblock %} {# main_content #}
4 changes: 2 additions & 2 deletions application/views/pages/admin/add_user.twig
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@


{% block title_menu %}
<span class="title_menu_item"><a href="http://docs.sharifjudge.ir/en:v1.4:users#add_users" target="_blank"><i class="fa fa-question-circle color6"></i> Help</a></span>
<span class="title_menu_item"><a href="https://github.com/mjnaderi/Sharif-Judge/blob/docs/v1.4/users.md#add-users" target="_blank"><i class="fa fa-question-circle color6"></i> Help</a></span>
{% endblock %}


Expand Down Expand Up @@ -72,4 +72,4 @@
</p>
<input type="submit" class="sharif_input" id="add_users_button" value="Add Users"/>
<span id="loading" style="display: none;"><img src="{{ base_url('assets/images/loading.gif') }}" /> Adding users... Please wait</span>
{% endblock %} {# main_content #}
{% endblock %} {# main_content #}
20 changes: 10 additions & 10 deletions application/views/pages/admin/settings.twig
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ $(document).ready(function(){

{% block title_menu %}
<span class="title_menu_item">
<a href="http://docs.sharifjudge.ir/en:v1.4:settings" target="_blank"><i class="fa fa-question-circle color6"></i> Help</a>
<a href="https://github.com/mjnaderi/Sharif-Judge/blob/docs/v1.4/settings.md" target="_blank"><i class="fa fa-question-circle color6"></i> Help</a>
</span>
{% endblock %}

Expand Down Expand Up @@ -146,7 +146,7 @@ $(document).ready(function(){

<h2 class="shj_form">
Sandboxing <span class="title_menu_item">
<a href="http://docs.sharifjudge.ir/en:v1.4:sandboxing" target="_blank"><i class="fa fa-question-circle color11"></i> Help</a>
<a href="https://github.com/mjnaderi/Sharif-Judge/blob/docs/v1.4/sandboxing.md" target="_blank"><i class="fa fa-question-circle color11"></i> Help</a>
</span>
</h2>

Expand All @@ -155,7 +155,7 @@ $(document).ready(function(){
<label for="form_easysandbox">EasySandbox</label>
</p>
<p class="form_comment">Enable EasySandbox for C/C++.<br>
You must <a href="http://docs.sharifjudge.ir/en:v1.4:sandboxing#build_easysandbox" target="_blank">build EasySandbox</a> before enabling it.<br>
You must <a href="https://github.com/mjnaderi/Sharif-Judge/blob/docs/v1.4/sandboxing.md#build-easysandbox" target="_blank">build EasySandbox</a> before enabling it.<br>
{% if not sandbox_built %}
<span style="color: red;">You have not built EasySandbox yet.</span>
{% endif %}
Expand All @@ -166,35 +166,35 @@ $(document).ready(function(){
<label for="form_java_policy">Java Policy</label>
</p>
<p class="form_comment">
Enable <a href="http://docs.sharifjudge.ir/en:v1.4:sandboxing#java_sandboxing" target="_blank">Java Sandboxing</a>
Enable <a href="https://github.com/mjnaderi/Sharif-Judge/blob/docs/v1.4/sandboxing.md#java-sandboxing" target="_blank">Java Sandboxing</a>
</p>



<h2 class="shj_form">
Shield <span class="title_menu_item">
<a href="http://docs.sharifjudge.ir/en:v1.4:shield" target="_blank"><i class="fa fa-question-circle color11"></i> Help</a>
<a href="https://github.com/mjnaderi/Sharif-Judge/blob/docs/v1.4/shield.md" target="_blank"><i class="fa fa-question-circle color11"></i> Help</a>
</span>
</h2>

<p class="input_p">
<input id="form_c_sh" type="checkbox" name="enable_c_shield" value="1" {{ enable_c_shield ? 'checked' }}/> <label for="form_c_sh">C Shield</label><br>
<span class="form_comment">Enable <a href="http://docs.sharifjudge.ir/en:v1.4:shield" target="_blank">Shield</a> for C</span>
<span class="form_comment">Enable <a href="https://github.com/mjnaderi/Sharif-Judge/blob/docs/v1.4/shield.md" target="_blank">Shield</a> for C</span>
</p>
<p class="input_p">
<input id="form_cpp_sh" type="checkbox" name="enable_cpp_shield" value="1" {{ enable_cpp_shield ? 'checked' }}/>
<label for="form_cpp_sh">C++ Shield</label><br>
<span class="form_comment">Enable <a href="http://docs.sharifjudge.ir/en:v1.4:shield" target="_blank">Shield</a> for C++</span>
<span class="form_comment">Enable <a href="https://github.com/mjnaderi/Sharif-Judge/blob/docs/v1.4/shield.md" target="_blank">Shield</a> for C++</span>
</p>
<p class="input_p">
<input id="form_py2_sh" type="checkbox" name="enable_py2_shield" value="1" {{ enable_py2_shield ? 'checked' }}/>
<label for="form_py2_sh">Python 2 Shield</label><br>
<span class="form_comment">Enable <a href="http://docs.sharifjudge.ir/en:v1.4:shield" target="_blank">Shield</a> for Python 2</span>
<span class="form_comment">Enable <a href="https://github.com/mjnaderi/Sharif-Judge/blob/docs/v1.4/shield.md" target="_blank">Shield</a> for Python 2</span>
</p>
<p class="input_p">
<input id="form_py3_sh" type="checkbox" name="enable_py3_shield" value="1" {{ enable_py3_shield ? 'checked' }}/>
<label for="form_py3_sh">Python 3 Shield</label><br>
<span class="form_comment">Enable <a href="http://docs.sharifjudge.ir/en:v1.4:shield" target="_blank">Shield</a> for Python 3</span>
<span class="form_comment">Enable <a href="https://github.com/mjnaderi/Sharif-Judge/blob/docs/v1.4/shield.md" target="_blank">Shield</a> for Python 3</span>
</p>
<p class="input_p">
<label for="form_def_c">Shield Rules (for C)</label>
Expand All @@ -217,4 +217,4 @@ $(document).ready(function(){
<input type="submit" value="Save Changes" class="sharif_input"/>
</p>
</form>
{% endblock %} {# main_content #}
{% endblock %} {# main_content #}
4 changes: 2 additions & 2 deletions application/views/pages/admin/users.twig
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@


{% block title_menu %}
<span class="title_menu_item"><a href="http://docs.sharifjudge.ir/en:v1.4:users" target="_blank"><i class="fa fa-question-circle color6"></i> Help</a></span>
<span class="title_menu_item"><a href="https://github.com/mjnaderi/Sharif-Judge/blob/docs/v1.4/users.md" target="_blank"><i class="fa fa-question-circle color6"></i> Help</a></span>
<span class="title_menu_item"><a href="{{ site_url('users/add') }}"><i class="fa fa-plus color11"></i> Add Users</a></span>
<span class="title_menu_item"><a href="{{ site_url('users/list_excel') }}"><i class="fa fa-download color9"></i> Excel</a></span>
{% endblock %}
Expand Down Expand Up @@ -60,4 +60,4 @@
</tr>
{% endfor %}
</table>
{% endblock %} {# main_content #}
{% endblock %} {# main_content #}
4 changes: 2 additions & 2 deletions application/views/templates/side_bar.twig
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@
<div id="sidebar_bottom">
<p>
<a href="https://github.com/mjnaderi/Sharif-Judge" target="_blank">&copy; Sharif Judge {{ SHJ_VERSION }}</a>
<a href="http://docs.sharifjudge.ir" target="_blank">Docs</a>
<a href="https://github.com/mjnaderi/Sharif-Judge/tree/docs" target="_blank">Docs</a>
</p>
<p class="timer"></p>
<div id="shj_collapse" class="pointer">
<i id="collapse" class="fa fa-caret-square-o-left fa-lg"></i><span class="sidebar_text">Collapse Menu</span>
</div>
</div>
</div>
</div>

0 comments on commit 7ca3101

Please sign in to comment.