Skip to content
This repository has been archived by the owner on Sep 19, 2022. It is now read-only.

Commit

Permalink
Use style in perunauthorize_403.php from *.css file
Browse files Browse the repository at this point in the history
  • Loading branch information
vyskocilpavel committed Feb 26, 2020
1 parent c7a6ed7 commit d980675
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ All notable changes to this project will be documented in this file.
#### Changed
- Double quotes changed to single quotes
- Using of short array syntax (from array() to [])
- Use style in perunauthorize_403.php from *.css file

## [v2.0.0]
#### Added
Expand Down
8 changes: 2 additions & 6 deletions templates/perunauthorize_403.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ function myFunction() {
*/

$this->data['header'] = '';
$this->data['head'] = '<link rel="stylesheet" media="screen" type="text/css" href="' .
SimpleSAML\Module::getModuleUrl('perunauthorize/res/css/authorize.css') . '" />';
$this->data['403_header'] = $this->t('{perunauthorize:Perunauthorize:403_header}');
$this->data['403_text'] = $this->t('{perunauthorize:Perunauthorize:403_text}');
$this->data['403_subject'] = $this->t('{perunauthorize:Perunauthorize:403_subject}');
Expand Down Expand Up @@ -64,12 +66,6 @@ function getBaseURL($t, $type = 'get', $key = null, $value = null)

?>

<style>
.error_message {
word-wrap: break-word;
}
</style>

<div class="error_message">
<h1><?php echo $this->data['403_header']; ?></h1>
<p><?php echo $this->data['403_text'] . $this->data['serviceName'] . '<br>';
Expand Down

0 comments on commit d980675

Please sign in to comment.