## -*- coding: utf-8 -*- ## helpers <%def name="tag_button(text, tag_type=None)"> <% color_scheme = { 'default': 'border:1px solid #979797;color:#666666;background-color:#f9f9f9', 'approved': 'border:1px solid #0ac878;color:#0ac878;background-color:#f9f9f9', 'rejected': 'border:1px solid #e85e4d;color:#e85e4d;background-color:#f9f9f9', 'under_review': 'border:1px solid #ffc854;color:#ffc854;background-color:#f9f9f9', } css_style = ';'.join([ 'display:inline', 'border-radius:2px', 'font-size:12px', 'padding:.2em', ]) %>
${text}
<%def name="status_text(text, tag_type=None)"> <% color_scheme = { 'default': 'color:#666666', 'approved': 'color:#0ac878', 'rejected': 'color:#e85e4d', 'under_review': 'color:#ffc854', } %> ${text} <%def name="gravatar_img(email, size=16)"> <% css_style = ';'.join([ 'padding: 0', 'margin: -4px 0', 'border-radius: 50%', 'box-sizing: content-box', 'display: inline', 'line-height: 1em', 'min-width: 16px', 'min-height: 16px', ]) %> gravatar <%def name="link_css()">\ <% css_style = ';'.join([ 'color:#427cc9', 'text-decoration:none', 'cursor:pointer' ]) %>\ ${css_style}\ ## Constants <% text_regular = "-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', Helvetica, sans-serif" text_monospace = "'Menlo', 'Liberation Mono', 'Consolas', 'DejaVu Sans Mono', 'Ubuntu Mono', 'Courier New', 'andale mono', 'lucida console', monospace" %> ## headers we additionally can set for email <%def name="headers()" filter="n,trim"> <%def name="plaintext_footer()" filter="trim"> ${_('This is a notification from RhodeCode.')} ${instance_url} <%def name="body_plaintext()" filter="n,trim"> ## this example is not called itself but overridden in each template ## the plaintext_footer should be at the bottom of both html and text emails ${self.plaintext_footer()} ${self.subject()}
${_('RhodeCode')} % if rhodecode_instance_name: - ${rhodecode_instance_name} % endif
${self.body()}
 
${_('This is a notification from RhodeCode.')} ${instance_url}