Conditional warnings
This commit is contained in:
@@ -199,6 +199,10 @@ else if ($display == "start")
|
|||||||
{
|
{
|
||||||
$te->set_block_template("SETTINGS_BACK", "SETTINGS_BACK_SOURCE");
|
$te->set_block_template("SETTINGS_BACK", "SETTINGS_BACK_SOURCE");
|
||||||
}
|
}
|
||||||
|
if (!$lib->is_loaded())
|
||||||
|
{
|
||||||
|
$te->set_block_template("SETTINGS_FIRSTRUN", "SETTINGS_FIRSTRUN_SOURCE");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
echo $te->get_html();
|
echo $te->get_html();
|
||||||
@@ -3,9 +3,12 @@
|
|||||||
<form id="settings" method="POST" action="./?settings">
|
<form id="settings" method="POST" action="./?settings">
|
||||||
<label for="osu_folder">osu! folder: </label>
|
<label for="osu_folder">osu! folder: </label>
|
||||||
<input type="text" form="settings" id="osu_folder" name="osu_folder" placeholder="C:\Games\osu!" /><br />
|
<input type="text" form="settings" id="osu_folder" name="osu_folder" placeholder="C:\Games\osu!" /><br />
|
||||||
<p style="font-size:0.9em">(Use a fully qualified real path preferably without symlinks. Relative paths are supported in theory, but try to use absolute paths.)</p>
|
<div class="buttons" style="text-align:right;">
|
||||||
{{ SETTINGS_BACK }}
|
{{ SETTINGS_BACK }}
|
||||||
<input type="submit" form="settings" value="Save" />
|
<input type="submit" form="settings" value="Save" />
|
||||||
|
</div>
|
||||||
|
{{ SETTINGS_FIRSTRUN }}
|
||||||
|
<p class="note">(Use a fully qualified real path preferably without symlinks. Relative paths are supported in theory, but try to use absolute paths.)</p>
|
||||||
</form>
|
</form>
|
||||||
<form id="cancelform" method="GET" action="./"></form>
|
<form id="cancelform" method="GET" action="./"></form>
|
||||||
</div>
|
</div>
|
||||||
@@ -122,4 +122,7 @@ details.mapset summary::-webkit-details-marker {
|
|||||||
margin-top: 30px;
|
margin-top: 30px;
|
||||||
border: 1px solid white;
|
border: 1px solid white;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
|
}
|
||||||
|
.warn .note {
|
||||||
|
font-size: 0.9em;
|
||||||
}
|
}
|
||||||
@@ -2,5 +2,5 @@
|
|||||||
<h2>WARNING!</h2>
|
<h2>WARNING!</h2>
|
||||||
<p>Repacking all beatmaps will take a LONG time. Are you sure you want to continue?</p>
|
<p>Repacking all beatmaps will take a LONG time. Are you sure you want to continue?</p>
|
||||||
<p style="text-align:center;"><a href="{{ WARN_FORWARD_LINK }}">[ Yes ]</a> <a href="./?">[ No ]</a></p>
|
<p style="text-align:center;"><a href="{{ WARN_FORWARD_LINK }}">[ Yes ]</a> <a href="./?">[ No ]</a></p>
|
||||||
<p style="font-size:0.9em">(The repacking will start after clicking the "yes" button. If you are unsure whether you clicked it, check your session/osz/ folder; there should be some .osz files already.)</p>
|
<p class="note">(The repacking will start after clicking the "yes" button. If you are unsure whether you clicked it, check your session/osz/ folder; there should be some .osz files already.)</p>
|
||||||
</div>
|
</div>
|
||||||
Reference in New Issue
Block a user