## -*- coding: utf-8 -*-
<%!
    from pylons.i18n.translation import set_lang, get_lang
%>
<!DOCTYPE html>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <title>.:. ${config.get('baruwa.custom.name', 'Baruwa')} ::${_('Auto Quarantine release result:')}</title>
        <meta name="description" content="Baruwa Mail Security">
        <meta name="viewport" content="width=device-width">
        % if 'lang' in session and session['lang'] and session['lang'] in ['ar', 'he', 'ur', 'fa']:
		<link rel="stylesheet" href="${h.media_url()}css/vendor/bs-rl.min.css">
        <link rel="stylesheet" href="${h.media_url()}css/vendor/bsr-rl.min.css">
		<link rel="stylesheet" href="${h.media_url()}css/vendor/fa-rl.min.css" />
        <link rel="stylesheet" href="${h.media_url()}css/baruwa-rl.css">
	    <style>body {direction: rtl;} </style>
		% else:
		<link rel="stylesheet" href="${h.media_url()}css/vendor/bs.min.css">
        <link rel="stylesheet" href="${h.media_url()}css/vendor/bsr.min.css">
		<link rel="stylesheet" href="${h.media_url()}css/vendor/fa.min.css" />
        <link rel="stylesheet" href="${h.media_url()}css/baruwa.min.css">
	    % endif
		${h.javascript_link(h.media_url() + 'js/vendor/m.min.js')}
		<link rel="icon" href="${h.media_url()}img/favicon.ico" type="image/x-icon" />
		<link rel="shortcut icon" href="${h.media_url()}img/favicon.ico" type="image/x-icon" />
		<script type="text/javascript">
		var media_url = "${h.media_url()}";
		</script>
		${h.javascript_link(h.media_url() + 'js/vendor/jquery.min.js',
		h.media_url() + 'js/vendor/jquery.mustache.min.js',
		h.media_url() + 'js/vendor/bs.min.js',
		url('jsi18n'),
		h.media_url() + 'js/baruwa/common.min.js')}
    </head>
    <body>
		<div id="wrap">
			<!-- Header -->
			<!-- <div class="navbar">
							<div class="navbar-inner">
								<div class="container-fluid">
									${h.link_to(h.portable_img('imgs/logo.png', config.get('baruwa.custom.name', 'Baruwa'), class_='brand'), url('home'))}
								</div>
							</div>
						</div>
						<div class="container-fluid" id="nav">
							<div class="row-fluid">
								<div class="span1 hidden-phone"></div>
								<div class="span10">&nbsp;</div>
								<div class="span1 hidden-phone"></div>
							</div>
						</div> -->
			<div class="container-fluid" id="header">
                <div class="row-fluid">
                    <div class="span1 hidden-phone"></div>
                    <div class="span10">
                        <div class="row-fluid">
                            <div class="span4">
                                ${h.link_to(h.portable_img('imgs/logo.png', config.get('baruwa.custom.name', 'Baruwa'), class_='brand'), url('home'))}
                            </div>
                            <div class="span8">
                                <ul>
                    				<li>${h.link_to(_('Login'), url('/accounts/login'))}</li>
                    			</ul>
                            </div>
                        </div>
                    </div>
                    <div class="span1 hidden-phone"></div>
                </div>
            </div>
            <div class="container-fluid" id="navigation">
                <div class="row-fluid" id="moji">
                    <div class="span1 hidden-phone"></div>
                    <div class="span10">
						&nbsp;
                    </div>
                    <div class="span1 hidden-phone"></div>
                </div>
            </div>
            <div class="container-fluid" id="headings">
                <div class="row-fluid">
                    <div class="span1 hidden-phone"></div>
                    <div class="span10">
                        &nbsp;
                    </div>
                    <div class="span1 hidden-phone"></div>
                </div>
            </div>
			<!-- Body -->
			<div class="container-fluid">
				<div class="row-fluid">
					<div class="span1 hidden-phone"></div>
					<div class="span10" id="pageheader">
						<h1>${_('Auto Quarantine release result:')}</h1>
					</div>
					<div class="span1 hidden-phone"></div>
				</div>
				<div class="row-fluid">
					<div class="span1 hidden-phone"></div>
					<div class="span10">
						% if c.released:
						<h3>${h.literal('<i class="icon-ok green"></i>')} ${_('Message released')}</h3>
						% else:
						<h3>${h.literal('<i class="icon-remove red"></i>')} ${_('Message not released')}</h3>
						% endif
					</div>
					<div class="span1 hidden-phone"></div>
				</div>
				<div class="row-fluid">
					<div class="span1 hidden-phone"></div>
					<div class="span10">
						% if c.released:
						<p>${_('Message with Message-ID: %s released from quarantine to: %s') % (c.messageid, c.releaseaddress)}</p>
						% else:
						<p>${c.errormsg}</p>
						% endif
					</div>
					<div class="span1 hidden-phone"></div>
				</div>
			</div>
		</div>
		<!-- Footer -->
		<footer>
			<div class="container-fluid">
				<div class="row-fluid">
					<div class="span1"></div>
					<div class="span4">
						<p>
							<a href="${config.get('baruwa.custom.url', 'http://www.baruwa.org')}">${config.get('baruwa.custom.name', 'Baruwa')}</a>
						</p>
						<p>
							${_('Language: ')}<select name="language" id="globallang">
								% for lang in h.get_languages():
								  % if lang.keys()[0] == get_lang()[0]:
								<option value="${lang.keys()[0]}" selected='selected'>${lang[lang.keys()[0]]}</option>
								  % else:
								<option value="${lang.keys()[0]}">${lang[lang.keys()[0]]}</option>
								  % endif
							    % endfor
							</select>
						</p>
					</div>
					<div class="span4">
						&nbsp;
					</div>
					<div class="span4 pull-right">
					    <p>Powered by Baruwa © 2011-2015 Andrew Colin Kissa</p>
					</div>
				</div>
			</div>
		</footer>
	</body>
</html>

