{{#if error}}
{{> errorpartial message=error}}
{{else}}
<div class="row">
    {{#each entries}}
    <!-- to access proxy variable in each you need to go up (../) one step more for each if in each -->
    <div class="col s12 m6">
        <div class="card">
            {{#if PictureUrl}}
            <a class="card-image open-external" href="{{LinkUrl}}">
                <img src="{{../../proxy}}News/GetPageFeedImage/{{PostId}}.jpg?page={{NewsFeed}}">
            </a>
            {{/if}}
            <div class="card-content">
                <p style="font-size:16px;font-weight: bold;margin-bottom: 10px;">{{Title}}</p>
                {{#if EventGuests}}
                <p style="font-size:16px;margin-bottom: 10px;">{{langString "organisation.feeds.eventGuests"}}: {{EventGuests}}</p>
                {{/if}}
                <p>
                    {{{Body}}}
                </p>
            </div>
            <div class="card-action row" style="margin-bottom: 0px;">
                <div class="col s6">
                    <a href="{{LinkUrl}}" class="open-external" style="line-height: 30px; margin-right: 0px;">{{langString "organisation.feeds.gotoLink"}}</a>
                </div>
                <div class="col s6">
                    <img style="height: 30px; float: right;" src="img/{{NewsFeed}}.jpg">
                </div>
            </div>
        </div>
    </div>
    {{/each}}

</div>
{{/if}}