Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Working on #2972 Template Conversion to Twig Format (portal.php) #3019

Merged
merged 3 commits into from
Feb 16, 2018
Merged

Working on #2972 Template Conversion to Twig Format (portal.php) #3019

merged 3 commits into from
Feb 16, 2018

Conversation

Starpaul20
Copy link
Member

#2972 for portal.php

This is still incomplete, I need #2988 merged before I can finish this.

@Starpaul20 Starpaul20 added the s:in-progress Status: In Progress. Some work completed label Feb 6, 2018
@Starpaul20 Starpaul20 removed the s:in-progress Status: In Progress. Some work completed label Feb 16, 2018
@Starpaul20
Copy link
Member Author

This is finished

Copy link
Member

@euantorano euantorano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just one minor change needed.

{% block head %}
<title>{{ mybb.settings.bbname }}</title>
<link rel="alternate" type="application/rss+xml" title="{{ lang.latest_announcements }} (RSS 2.0)" href="{{ mybb.settings.bburl }}/syndication.php?portal=1" />
<link rel="alternate" type="application/atom+xml" title="{{ lang.latest_announcements }} (Atom 1.0)" href="{{ mybb.settings.bburl }}/syndication.php?portal=1&type=atom1.0" />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

& should be &amp;

</tr>
<tr>
<td class="trow1">
<span class="smalltext">{{ lang.pms_received_new|raw }}<br /><br />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than using |raw here, it looks like this is a fairly simple language variable that could be built in the template using the trans() function. One of my PRs from today marks the trans() function as being HTML safe, so as long as $mybb->user['username'] is HTML safe, it should be fine here.

@Starpaul20
Copy link
Member Author

Done

@euantorano euantorano merged commit cfb9278 into mybb:develop/1.9 Feb 16, 2018
@euantorano
Copy link
Member

Would you mind updating the list of templates in #2972 with the ones you've finished with the PRs I've merged too please?

@Starpaul20 Starpaul20 deleted the develop-1.9-portal branch February 16, 2018 22:42
@Starpaul20 Starpaul20 added the b:1.9 Branch: 1.9.x label Feb 18, 2018
euantorano pushed a commit that referenced this pull request Mar 16, 2018
* Working on #2972 Template Conversion to Twig Format (portal.php)

* Updated attachments

* Coding standards
euantorano pushed a commit to euantorano/mybb that referenced this pull request Mar 23, 2019
…ybb#3019)

* Working on mybb#2972 Template Conversion to Twig Format (portal.php)

* Updated attachments

* Coding standards
euantorano pushed a commit to euantorano/mybb that referenced this pull request Mar 23, 2019
…ybb#3019)

* Working on mybb#2972 Template Conversion to Twig Format (portal.php)

* Updated attachments

* Coding standards
euantorano pushed a commit that referenced this pull request Jun 2, 2019
* Working on #2972 Template Conversion to Twig Format (portal.php)

* Updated attachments

* Coding standards
euantorano pushed a commit that referenced this pull request Jun 2, 2019
* Working on #2972 Template Conversion to Twig Format (portal.php)

* Updated attachments

* Coding standards
@euantorano euantorano mentioned this pull request Jan 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
b:1.9 Branch: 1.9.x
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants