$message = defaults($explanation, $e->getCode(), '');
}
- return ['$title' => $title, '$description' => $message];
+ return ['$title' => $title, '$message' => $message, '$back' => L10n::t('Go back')];
}
/**
* Displays a bare message page with no theming at all.
*
* @param \Friendica\Network\HTTPException $e
- * @throws \Friendica\Network\HTTPException\InternalServerErrorException
+ * @throws \Exception
*/
public static function rawContent(\Friendica\Network\HTTPException $e)
{
*
* @param \Friendica\Network\HTTPException $e
* @return string
- * @throws \Friendica\Network\HTTPException\InternalServerErrorException
+ * @throws \Exception
*/
public static function content(\Friendica\Network\HTTPException $e)
{
cursor: pointer;
}
-/* General designing elements */
+/* General design elements */
.btn {
outline: none;
-moz-box-shadow: inset 0px 1px 0px 0px #ffffff;
.wall-item-container .wall-item-content .type-link img.attachment-image,
.type-link img.attachment-image, .type-video img.attachment-image {
- /* max-width: 640px; */
max-width: 100%;
max-height: initial;
float: initial;
height: 1.2em;
vertical-align: middle;
}
+
+/* Exception page */
+
+#exception {
+ overflow: hidden;
+ background-image: url('../images/friendica-404_svg_hare-bottom-light-inside.png');
+ background-position: 50px bottom;
+ background-repeat: no-repeat;
+}
+
+#exception .hare {
+ float: right;
+}
+
+@media screen and (max-width: 600px) {
+ #exception .hare {
+ display: none;
+ }
+}
\ No newline at end of file
<div id="exception" class="generic-page-wrapper">
+ <img class="hare" src="images/friendica-404_svg_flexy-o-hare.png"/>
<h1>{{$title}}</h1>
<p>{{$message}}</p>
+ <p><button type="button" onclick="window.history.back()" class="btn btn-primary">{{$back}}</button></p>
</div>
* mobile aside
*/
@media screen and (max-width: 990px) {
+ body {
+ padding-top: 105px;
+ }
aside{
position: fixed!important;
top: 0!important;
display: flex;
}
+#friendica-logo-mask {
+ display: block;
+}
+
/* Notification Menu */
#topbar-first #nav-notifications-menu {