Improve alignment of header left/right columns

@import url(http://fonts.googleapis.com/css?family=Open+Sans:600,700);

/** LAYOUT **/
body {
    font-family: Verdana, Helvetica, Arial;
    font-size: 12px;
    line-height: 1.5;
}
    body.front {
        background: none;
    }

#content {
    width: 960px;
    padding: 0px;
    margin: auto;
}

#wrapper {
    padding-top: 10px;
    margin-bottom: 50px;
    width: 960px;
}

#main_content {
    padding: 0 60px;
}

#header_right {
    width: 180px;
    float: left;
    margin-top: 30px;
}

#header_left {
    width: 600px;
    float: right;
    padding: 20px 30px;
}

/** HEADER **/
#banner {
    background: #EAF5F6;
    border: none;
    height: 150px;
    position: relative;
}

#banner_inner {
    width: 960px;
    height: 150px;
}
    #banner_inner a:hover {
        text-decoration: underline;
    }

#logo {
    position: absolute;
    top: 20px;
}

#navigation_search {
    top: 50px;
    visibility: hidden;
}

div.lang {
    top: 23px;
    color: #00aaa6;
    font-size: 12px;
    text-transform: capitalize;
}
    div.lang a {
        color: #00aaa6;
        text-decoration: none;
    }

#logged_in_bar {
    top: 24px;
    font-weight: bold;
    font-size: 12px;
    padding: 3px 8px 1px 8px;
    height: 19px;
    background: #009a9d;
    border-radius: 5px;
}
    #logged_in_bar, #logged_in_bar a, #logged_in_bar a:visited {
        color: #FFF;
        text-decoration: none;
    }

/** NAVIGATION BAR **/
#topnav {
    font-family: Helvetica, Arial;
    font-size: 14px;
    font-weight: bold;
    float: right;
}
    #topnav ul li {
        padding-left: 8px;
        padding-right: 8px;
        margin-right: 8px;

        border-top-left-radius: 5px;
        border-top-right-radius: 5px;
    }
    #topnav ul li a {
        color: #00aaa6 !important;
    }

/** MAIN SITE **/
h1, h1 a {
    font-family: 'Open Sans', Helvetica, Arial;
    color: #009a9d;
    font-size: 28px;
    font-weight: 600;
    margin-top: 30px;
    text-decoration: none;
}

h2, h2 a {
    font-family: 'Open Sans', Helvetica, Arial;
    color: #7bbb58;
    font-size: 18px;
    font-weight: 700;
}

h3, h3 a {
    font-family: Helvetica, Arial;
    color: #00aaa6;
    font-size: 14px;
    font-weight: bold;
}

/** HELP **/
#left_column_flip {
    margin-top: 10px;
    padding-left: 30px;
    margin-right: 30px;
    width: 660px;
}

#right_column_flip {
    text-align: left;
    width: 240px;
    margin-top: 32px;
}
    #right_column_flip h3 {
        margin-bottom: 0px;
    }
    #right_column_flip ul {
        margin-top: 0px;
        list-style: none outside none;
    }

.controller_help {
    font-size: 12px;
    line-height: 1.5;
    text-align: justify;
}
    .controller_help a {
        color: #009a9d;
        text-decoration: none;
    }
    .controller_help a:hover {
        text-decoration: underline;
    }

.XXX {  /* TODO stuff */
    color: red;
    font-weight: bold;
    background-color: yellow;
}

/** FRONTPAGE **/
.front #wrapper, .front #content {
    width: 100%;
    padding: 0px;
    margin: 0px;
}

#frontpage-intro {
    width: 960px;
    margin: auto;
    position: relative;
}

#frontpage-lead {
    font-family: 'Open Sans', Helvetica, Arial;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    color: #73c167;
}

#frontpage-left-balloon {
    float: left;
    width: 196px;
    height: 184px;
    background: url(/asktheeu-theme/images/yellow_balloon.gif);
    padding: 10px 30px 20px 50px;
    margin: 37px 8px 60px 0px;
    text-align: center;
}
    #frontpage-left-balloon h2 {
        font-family: 'Open Sans', Helvetica, Arial;
        font-size: 24px;
        font-weight: 700;
        color: #fff;
        padding-right: 20px;
        margin-bottom: 5px;
    }
    #frontpage-left-balloon p {
        padding-right: 20px;
    }
    #frontpage-left-balloon .frontpage-button-link {
        margin-left: 38px;
    }

#frontpage-middle-balloon {
    float: left;
    width: 314px;
    height: 283px;
    background: url(/asktheeu-theme/images/blue_balloon.gif);
    padding: 0px 30px 0px 30px;
    text-align: center;
}
    #frontpage-middle-balloon h1 {
        font-family: 'Open Sans', Helvetica, Arial;
        font-size: 42px;
        font-weight: 700;
        color: #fff;
        padding-right: 10px;
        margin-bottom: 5px;
    }
    #frontpage-middle-balloon p {
        margin-left: 15px;
        padding-right: 20px;
    }
    #frontpage-middle-balloon .frontpage-button-link {
        margin-left: 102px;
    }

#frontpage-right-balloon {
    float: left;
    width: 218px;
    height: 174px;
    background: url(/asktheeu-theme/images/green_balloon.gif);
    padding: 5px 20px 20px 50px;
    margin: 42px 0px 60px 4px;
    text-align: center;
}
    #frontpage-right-balloon h2 {
        font-family: 'Open Sans', Helvetica, Arial;
        font-size: 24px;
        font-weight: 700;
        color: #fff;
        padding-right: 30px;
        margin-bottom: 5px;
    }
    #frontpage-right-balloon p {
        padding-right: 30px;
    }
    #frontpage-right-balloon .frontpage-button-link {
        margin-left: 43px;
    }

#frontpage-left-balloon p,
#frontpage-right-balloon p,
#frontpage-middle-balloon p {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    margin-top: 0px;
}

#frontpage-intro a {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}
    #frontpage-intro a:hover {
        text-decoration: underline;
    }

.frontpage-button-link {
    height: 24px;
    width: 100px;
    background: url(/asktheeu-theme/images/button_gradient.gif);
    border-radius: 5px;
    text-align: center;
    padding-top: 3px;
    padding-bottom: 3px;
}

#frontpage-content {
    background: #EAF5F6;
    border-top: 1px solid #b2dcde;
}

#frontpage-inner-content {
    width: 960px;
    margin: auto;
    position: relative;
    padding-bottom: 20px;
}

#left-column {
    float: left;
    background: #EAF5F6;
    width: 450px;
}

#right-column {
    float: right;
    width: 450px;
}

#frontpage-content p {
    color: #6f6f6e;
    font-size: 12px;
    line-height: 1.5;
}

#frontpage-content p a {
    color: #009a9d;
    font-size: 12px;
    text-decoration: none;
}
    #frontpage-content a:hover {
        text-decoration: underline;
    }

.picture-frame {
    width: 450px;
    height: 270px;
    background: #FFF;
    border-radius: 15px;
    margin-bottom: 30px;
}
    .picture-frame img,
    .picture-frame iframe {
        width: 420px;
        height: 240px;
        margin: 15px;
    }

#follow-us-frame {
    width: 390px;
    height: 60px;
    background: #FFF;
    border-radius: 15px;
    margin-bottom: 30px;
    margin-top: 50px;
    padding: 20px 30px 20px 30px;
}
    #follow-us-frame p {
        float: left;
        font-family: 'Open Sans', Helvetica, Arial;
        font-size: 18px;
        color: #009a9d;
    }
    #follow-us-frame span {
        float: left;
        margin-top: 12px;
        margin-left: 20px;
    }

.link-arrow {
    background: no-repeat url(/asktheeu-theme/images/arrow_icon.gif) ;
    padding-top: 6px;
    padding-left: 35px;
    height: 30px;
}
    .link-arrow a {
        font-family: Helvetica, Arial;
        color: #00aaa6;
        font-size: 14px;
        font-weight: bold;
        text-decoration: none;
    }

/** GENERAL **/
.request_listing span.head a,
.user_listing span.head a,
.body_listing span.head a {
    font-family: 'Open Sans', Helvetica, Arial;
    font-size: 16px;
    color: #009A9D;
}

a,
.request_listing a,
.body_listing a,
.user_listing a {
    color: #009A9D;
    text-decoration: none !important;
}
    a:hover,
    .request_listing a:hover,
    .body_listing a:hover,
    .user_listing a:hover {
        text-decoration: underline !important;
    }

#header_left p,
#header_left ul,
#header_left ol {
    padding-right: 120px;
}

.request_left {
    width: 600px;
}

.request_right {
    width: 240px;
}

/** REQUEST **/
p.subtitle {
    font-family: Verdana, Helvetica, Arial;
    font-size: 15px;
    color: #444444; /* XXX */
}

p.public-body-name-prefix {
    font-family: Verdana, Helvetica, Arial;
    font-size: 14px;
    margin-top: 0px;
    margin-bottom: -20px;
    color: #444444; /* XXX */
}

#stepwise_make_request {
    background: none;
    width: 480px;
    margin-bottom: 10px;

    font-family: Verdana, Helvetica, Arial;
    font-size: 16px;
    color: #444444; /* XXX */
}
    #stepwise_make_request strong {
        color: #009A9D;
    }

h2.foi_results {
    width: 480px;
    padding-bottom: 0px;
}

#foi_results_section {
    padding-left: 210px;
    padding-right: 120px;
}

.request_listing {
    margin-right: -210px;
}

    .request_left {
        width: 480px;
    }
    .request_right {
        width: 210px;
    }
    .request_listing span.desc {
        background: none;
    }

.date_added {
    display: none;
}

#request_header {
    background: none;
}
    #request_header_body h3,
    #request_header_body .form_item_note {
        display: none;
    }
    #request_header_body #request_header_text {
        font-size: 1em;
    }

#request_search_ahead_results {
    font-size: 1em;
    margin-left: 110px;
    margin-top: 10px;
}

#request_header input,
#request_form textarea {
    width: 500px;
}

/** MODAL SIGN-IN **/
#signin-successful,
#signin-successful a {
    font-family: Helvetica, Arial;
    color: #00aaa6;
    font-size: 14px;
    font-weight: bold;
    padding-top: 50px;
}

#sign_together h1 {
    margin-top: 10px;
}

#sign_together .errorExplanation {
    width: 360px;
    text-align: left;
}

/** FOOTER **/
#footer {
    height: 90px;
    margin: 0px;
    border-top-width: 1px;
}

#footer-inner {
    width: 960px;
    margin: auto;
    position: relative;
}

#access-info-logo {
    position: absolute;
    left: 0px;
    top: 10px;
}

#footer-links {
    margin-left: 90px;
    margin-top: 10px;
    float: left;

    font-family: 'Open Sans', Helvetica, Arial;
    font-size: 18px;
}
    #footer-links ul {
        list-style: none outside none;
    }
    #footer-links ul li {
        float: left;
        margin-right: 25px;
    }
    #footer-links ul a {
        text-decoration: none;
        color: #009a9d;
    }
    #footer-links ul a:hover {
        text-decoration: underline;
    }

#credits {
    float: right;
    margin-top: 13px;
    margin-right: 95px;
    width: 340px;

    font-family: Verdana, Helvetica, Arial;
    font-size: 11px;
    text-align: right;
}
    #credits a {
        text-decoration: none;
        color: #00aaa6;
    }

#creative-commons-logo {
    position: absolute;
    right: 0px;
    top: 30px;
}

@import url(http://fonts.googleapis.com/css?family=Open+Sans:600,700);

/** LAYOUT **/
body {
    font-family: Verdana, Helvetica, Arial;
    font-size: 12px;
    line-height: 1.5;
}
    body.front {
        background: none;
    }

#content {
    width: 960px;
    padding: 0px;
    margin: auto;
}

#wrapper {
    padding-top: 10px;
    margin-bottom: 50px;
    width: 960px;
}

#main_content {
    padding: 0 60px;
}

#header_right {
    width: 180px;
    float: left;
}

#header_left {
    width: 600px;
    float: right;
    padding: 30px;
}

/** HEADER **/
#banner {
    background: #EAF5F6;
    border: none;
    height: 150px;
    position: relative;
}

#banner_inner {
    width: 960px;
    height: 150px;
}
    #banner_inner a:hover {
        text-decoration: underline;
    }

#logo {
    position: absolute;
    top: 20px;
}

#navigation_search {
    top: 50px;
    visibility: hidden;
}

div.lang {
    top: 23px;
    color: #00aaa6;
    font-size: 12px;
    text-transform: capitalize;
}
    div.lang a {
        color: #00aaa6;
        text-decoration: none;
    }

#logged_in_bar {
    top: 24px;
    font-weight: bold;
    font-size: 12px;
    padding: 3px 8px 1px 8px;
    height: 19px;
    background: #009a9d;
    border-radius: 5px;
}
    #logged_in_bar, #logged_in_bar a, #logged_in_bar a:visited {
        color: #FFF;
        text-decoration: none;
    }

/** NAVIGATION BAR **/
#topnav {
    font-family: Helvetica, Arial;
    font-size: 14px;
    font-weight: bold;
    float: right;
}
    #topnav ul li {
        padding-left: 8px;
        padding-right: 8px;
        margin-right: 8px;

        border-top-left-radius: 5px;
        border-top-right-radius: 5px;
    }
    #topnav ul li a {
        color: #00aaa6 !important;
    }

/** MAIN SITE **/
h1, h1 a {
    font-family: 'Open Sans', Helvetica, Arial;
    color: #009a9d;
    font-size: 28px;
    font-weight: 600;
    margin-top: 30px;
    text-decoration: none;
}

h2, h2 a {
    font-family: 'Open Sans', Helvetica, Arial;
    color: #7bbb58;
    font-size: 18px;
    font-weight: 700;
}

h3, h3 a {
    font-family: Helvetica, Arial;
    color: #00aaa6;
    font-size: 14px;
    font-weight: bold;
}

/** HELP **/
#left_column_flip {
    margin-top: 10px;
    padding-left: 30px;
    margin-right: 30px;
    width: 660px;
}

#right_column_flip {
    text-align: left;
    width: 240px;
    margin-top: 32px;
}
    #right_column_flip h3 {
        margin-bottom: 0px;
    }
    #right_column_flip ul {
        margin-top: 0px;
        list-style: none outside none;
    }

.controller_help {
    font-size: 12px;
    line-height: 1.5;
    text-align: justify;
}
    .controller_help a {
        color: #009a9d;
        text-decoration: none;
    }
    .controller_help a:hover {
        text-decoration: underline;
    }

.XXX {  /* TODO stuff */
    color: red;
    font-weight: bold;
    background-color: yellow;
}

/** FRONTPAGE **/
.front #wrapper, .front #content {
    width: 100%;
    padding: 0px;
    margin: 0px;
}

#frontpage-intro {
    width: 960px;
    margin: auto;
    position: relative;
}

#frontpage-lead {
    font-family: 'Open Sans', Helvetica, Arial;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    color: #73c167;
}

#frontpage-left-balloon {
    float: left;
    width: 196px;
    height: 184px;
    background: url(/asktheeu-theme/images/yellow_balloon.gif);
    padding: 10px 30px 20px 50px;
    margin: 37px 8px 60px 0px;
    text-align: center;
}
    #frontpage-left-balloon h2 {
        font-family: 'Open Sans', Helvetica, Arial;
        font-size: 24px;
        font-weight: 700;
        color: #fff;
        padding-right: 20px;
        margin-bottom: 5px;
    }
    #frontpage-left-balloon p {
        padding-right: 20px;
    }
    #frontpage-left-balloon .frontpage-button-link {
        margin-left: 38px;
    }

#frontpage-middle-balloon {
    float: left;
    width: 314px;
    height: 283px;
    background: url(/asktheeu-theme/images/blue_balloon.gif);
    padding: 0px 30px 0px 30px;
    text-align: center;
}
    #frontpage-middle-balloon h1 {
        font-family: 'Open Sans', Helvetica, Arial;
        font-size: 42px;
        font-weight: 700;
        color: #fff;
        padding-right: 10px;
        margin-bottom: 5px;
    }
    #frontpage-middle-balloon p {
        margin-left: 15px;
        padding-right: 20px;
    }
    #frontpage-middle-balloon .frontpage-button-link {
        margin-left: 102px;
    }

#frontpage-right-balloon {
    float: left;
    width: 218px;
    height: 174px;
    background: url(/asktheeu-theme/images/green_balloon.gif);
    padding: 5px 20px 20px 50px;
    margin: 42px 0px 60px 4px;
    text-align: center;
}
    #frontpage-right-balloon h2 {
        font-family: 'Open Sans', Helvetica, Arial;
        font-size: 24px;
        font-weight: 700;
        color: #fff;
        padding-right: 30px;
        margin-bottom: 5px;
    }
    #frontpage-right-balloon p {
        padding-right: 30px;
    }
    #frontpage-right-balloon .frontpage-button-link {
        margin-left: 43px;
    }

#frontpage-left-balloon p,
#frontpage-right-balloon p,
#frontpage-middle-balloon p {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    margin-top: 0px;
}

#frontpage-intro a {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}
    #frontpage-intro a:hover {
        text-decoration: underline;
    }

.frontpage-button-link {
    height: 24px;
    width: 100px;
    background: url(/asktheeu-theme/images/button_gradient.gif);
    border-radius: 5px;
    text-align: center;
    padding-top: 3px;
    padding-bottom: 3px;
}

#frontpage-content {
    background: #EAF5F6;
    border-top: 1px solid #b2dcde;
}

#frontpage-inner-content {
    width: 960px;
    margin: auto;
    position: relative;
    padding-bottom: 20px;
}

#left-column {
    float: left;
    background: #EAF5F6;
    width: 450px;
}

#right-column {
    float: right;
    width: 450px;
}

#frontpage-content p {
    color: #6f6f6e;
    font-size: 12px;
    line-height: 1.5;
}

#frontpage-content p a {
    color: #009a9d;
    font-size: 12px;
    text-decoration: none;
}
    #frontpage-content a:hover {
        text-decoration: underline;
    }

.picture-frame {
    width: 450px;
    height: 270px;
    background: #FFF;
    border-radius: 15px;
    margin-bottom: 30px;
}
    .picture-frame img,
    .picture-frame iframe {
        width: 420px;
        height: 240px;
        margin: 15px;
    }

#follow-us-frame {
    width: 390px;
    height: 60px;
    background: #FFF;
    border-radius: 15px;
    margin-bottom: 30px;
    margin-top: 50px;
    padding: 20px 30px 20px 30px;
}
    #follow-us-frame p {
        float: left;
        font-family: 'Open Sans', Helvetica, Arial;
        font-size: 18px;
        color: #009a9d;
    }
    #follow-us-frame span {
        float: left;
        margin-top: 12px;
        margin-left: 20px;
    }

.link-arrow {
    background: no-repeat url(/asktheeu-theme/images/arrow_icon.gif) ;
    padding-top: 6px;
    padding-left: 35px;
    height: 30px;
}
    .link-arrow a {
        font-family: Helvetica, Arial;
        color: #00aaa6;
        font-size: 14px;
        font-weight: bold;
        text-decoration: none;
    }

/** GENERAL **/
.request_listing span.head a,
.user_listing span.head a,
.body_listing span.head a {
    font-family: 'Open Sans', Helvetica, Arial;
    font-size: 16px;
    color: #009A9D;
}

a,
.request_listing a,
.body_listing a,
.user_listing a {
    color: #009A9D;
    text-decoration: none !important;
}
    a:hover,
    .request_listing a:hover,
    .body_listing a:hover,
    .user_listing a:hover {
        text-decoration: underline !important;
    }

#header_left p {
    padding-right: 120px;
}

.request_left {
    width: 600px;
}

.request_right {
    width: 240px;
}

/** REQUEST **/
p.subtitle {
    font-family: Verdana, Helvetica, Arial;
    font-size: 15px;
    color: #444444; /* XXX */
}

p.public-body-name-prefix {
    font-family: Verdana, Helvetica, Arial;
    font-size: 14px;
    margin-top: -20px;
    margin-bottom: -25px;
    color: #444444; /* XXX */
}

#stepwise_make_request {
    background: none;
    width: 480px;
    margin-bottom: 10px;

    font-family: Verdana, Helvetica, Arial;
    font-size: 16px;
    color: #444444; /* XXX */
}
    #stepwise_make_request strong {
        color: #009A9D;
    }

h2.foi_results {
    width: 480px;
    padding-bottom: 0px;
}

#foi_results_section {
    padding-left: 210px;
    padding-right: 120px;
}

.request_listing {
    margin-right: -210px;
}

    .request_left {
        width: 480px;
    }
    .request_right {
        width: 210px;
    }
    .request_listing span.desc {
        background: none;
    }

.date_added {
    display: none;
}

#request_header {
    background: none;
}
    #request_header_body h3,
    #request_header_body .form_item_note {
        display: none;
    }
    #request_header_body #request_header_text {
        font-size: 1em;
    }

#request_search_ahead_results {
    font-size: 1em;
    margin-left: 110px;
    margin-top: 10px;
}

#request_header input,
#request_form textarea {
    width: 500px;
}

/** MODAL SIGN-IN **/
#signin-successful,
#signin-successful a {
    font-family: Helvetica, Arial;
    color: #00aaa6;
    font-size: 14px;
    font-weight: bold;
    padding-top: 50px;
}

#sign_together h1 {
    margin-top: 10px;
}

#sign_together .errorExplanation {
    width: 360px;
    text-align: left;
}

/** FOOTER **/
#footer {
    height: 90px;
    margin: 0px;
    border-top-width: 1px;
}

#footer-inner {
    width: 960px;
    margin: auto;
    position: relative;
}

#access-info-logo {
    position: absolute;
    left: 0px;
    top: 10px;
}

#footer-links {
    margin-left: 90px;
    margin-top: 10px;
    float: left;

    font-family: 'Open Sans', Helvetica, Arial;
    font-size: 18px;
}
    #footer-links ul {
        list-style: none outside none;
    }
    #footer-links ul li {
        float: left;
        margin-right: 25px;
    }
    #footer-links ul a {
        text-decoration: none;
        color: #009a9d;
    }
    #footer-links ul a:hover {
        text-decoration: underline;
    }

#credits {
    float: right;
    margin-top: 13px;
    margin-right: 95px;
    width: 340px;

    font-family: Verdana, Helvetica, Arial;
    font-size: 11px;
    text-align: right;
}
    #credits a {
        text-decoration: none;
        color: #00aaa6;
    }

#creative-commons-logo {
    position: absolute;
    right: 0px;
    top: 30px;
}


subforms now respect form_ui settings. but if form_ui is empty, it will be set to :select to disable subform nesting.

git-svn-id: b2ff2946fad280430023ee7ead77858f96a610fa@647 561dde7e-7729-0410-be8e-ef83869d6c7d

<% readonly = (@record.readonly? or not @record.authorized_for?(:action => :update)) -%>
<% active_scaffold_config_for(@record.class).subform.columns.each :for => @record, :flatten => true do |column| %>
  <%
  next unless in_subform?(column, parent_record)
  column = column.clone
  column.form_ui ||= :select if column.association
  -%>

    <% unless readonly -%>
      <%= render :partial => form_partial_for_column(column), :locals => { :column => column, :scope => scope } -%>
    <% else -%>

<%= @record.send(column.name) -%>

    <% end -%>

<% end -%>

    <%= link_to_function as_('Remove'), '$(this).up(".association-record").remove()', { :class => "destroy" } -%>
    <% unless @record.new_record? %>
    <input type="hidden" name="<%= "record#{scope}[id]" -%>" value="<%= @record.id -%>" />
    <% end -%>

<% readonly = (@record.readonly? or not @record.authorized_for?(:action => :update)) -%>
<% active_scaffold_config_for(@record.class).subform.columns.each :for => @record, :flatten => true do |column| %>
  <%
  next unless in_subform?(column, parent_record)
  column = column.clone
  column.form_ui = :select if column.association
  -%>

    <% unless readonly -%>
      <%= render :partial => form_partial_for_column(column), :locals => { :column => column, :scope => scope } -%>
    <% else -%>

<%= @record.send(column.name) -%>

    <% end -%>

<% end -%>

    <%= link_to_function as_('Remove'), '$(this).up(".association-record").remove()', { :class => "destroy" } -%>
    <% unless @record.new_record? %>
    <input type="hidden" name="<%= "record#{scope}[id]" -%>" value="<%= @record.id -%>" />
    <% end -%>


Combine the search and publication scheme suggestions

<% @title = "Make an " + h(@info_request.law_used_short) + " request to '" + h(@info_request.public_body.name) + "'" %>

<% if @existing_request %>

    <%= user_or_you_capital_link(@existing_request.user) %> already
    created the same request on <%=simple_date(@existing_request.created_at)%>.
    You can either view the <a href="<%=request_url(@existing_request)%>">existing request,
    or edit the details below to make a new but similar request.

<% end %>

<%= foi_error_messages_for :info_request, :outgoing_message %>

Read this before writing your <%=h(@info_request.law_used_full)%> request

        <% form_tag("http://www.google.co.uk/search", {:id => "search_body_website_form", :method => "get"} ) do %>

                First,
                <% if !@info_request.public_body.publication_scheme.empty? %>
                    browse the authority's
                    <%= link_to "publication scheme", @info_request.public_body.publication_scheme %>
                    or search their web site ...
                <% else %>
                       search the authority's web site ...
                <% end %>
                <% if !@info_request.public_body.calculated_home_page.nil? %>

                            <%= text_field_tag 'q', params[:q], { :size => 20 } %>
                    <%= hidden_field_tag 'as_sitesearch', @info_request.public_body.calculated_home_page %>
                    <%= submit_tag "Search" %>
               <% end %>

               ... to check that the info isn't already published.

        <% end %>

        <% if @info_request.public_body.info_requests.size > 0 %>
            Browse <%= link_to "other requests", public_body_url(@info_request.public_body)  %>
            to '<%= h(@info_request.public_body.name) %>'
            for examples of how to word your request.
        <% else %>
            Browse <%= link_to "other requests", request_list_url %> for examples of how to word your request.
        <% end %>

Write your request in simple, precise language.

Ask for specific documents or information, this site is not suitable for general enquiries.

Keep it focussed. If you ask for everything it might cost too much and you might get nothing.

This site is public. Everything you type (except your email address) and any response will be published.

    <% if @info_request.public_body.notes != "" %>

Special note for this authority!

<%=MySociety::Format.make_clickable(@info_request.public_body.notes) %>

    <% end %>

    <% if @info_request.public_body.eir_only? %>

Please ask for environmental information only

The Freedom of Information Act does not apply to <%=h(@info_request.public_body.name)%>.
        However, you have the right to request environmental
        information under a different law (explanation).
        This covers a very wide spectrum of information about the state of
        the natural and built environment, such as:

Air, water, soil, land, flora and fauna (including how these effect
        human beings)

Information on emissions and discharges (e.g. noise, energy,
        radiation, waste materials)

Human health and safety

Cultural sites and built structures (as they may be affected by the
        environmental factors listed above)

Plans and administrative measures that affect these matters

Please only request information that comes under those categories, do not waste your
        time or the time of the public authority by requesting unrelated information.

    <% end %>

<% form_for(:info_request, @info_request, :html => { :id => 'write_form' }  ) do |f| %>

			To:
			<%=h(@info_request.public_body.name)%>

			Summary:
			<%= f.text_field :title, :size => 50 %>

			(a one line summary of the information you are requesting,
			e.g.
            <% if @info_request.law_used == 'eir' %>
                'Pollution levels over time for the River Tyne'
            <% else %>
                'Crime statistics by ward level for Wales'
            <% end %>
            )

		<% fields_for :outgoing_message do |o| %>

			Your request:
			<%= o.text_area :body, :rows => 20, :cols => 60 %>

		<% end %>

        <% if !@user %>

                Everything that you enter on this page, including your name,
                will be displayed publicly on
                this website (why?).
                If you are thinking of using a pseudonym,
                please read this first.

        <% else %>

                Everything that you enter on this page
                will be displayed publicly on
                this website (why?).

        <% end %>

			Can I request information about myself?
			No! (Click here for details)

			<%= f.hidden_field(:public_body_id, { :value => @info_request.public_body_id } ) %>
			<%= hidden_field_tag(:submitted_new_request, 1 ) %>
			<%= hidden_field_tag(:preview, 1 ) %>
			<%= submit_tag "Preview your public request" %>

<% end %>

<% @title = "Make an " + h(@info_request.law_used_short) + " request to '" + h(@info_request.public_body.name) + "'" %>

<% if @existing_request %>

    <%= user_or_you_capital_link(@existing_request.user) %> already
    created the same request on <%=simple_date(@existing_request.created_at)%>.
    You can either view the <a href="<%=request_url(@existing_request)%>">existing request,
    or edit the details below to make a new but similar request.

<% end %>

<%= foi_error_messages_for :info_request, :outgoing_message %>

Read this before writing your <%=h(@info_request.law_used_full)%> request

        <% form_tag("http://www.google.co.uk/search", {:id => "search_body_website_form", :method => "get"} ) do %>

               First, search the authority's web site ...
               <% if !@info_request.public_body.calculated_home_page.nil? %>

                           <%= text_field_tag 'q', params[:q], { :size => 20 } %>
                   <%= hidden_field_tag 'as_sitesearch', @info_request.public_body.calculated_home_page %>
                   <%= submit_tag "Search" %>
               <% end %>

               ... to check that the info isn't already published.

        <% end %>

    <% if !@info_request.public_body.publication_scheme.empty? %>

Browse the authority's
        <%= link_to "publication scheme", @info_request.public_body.publication_scheme %>
        to see if the information is already readily accessible, or for clues as to what could be requested.

    <% end %>

        <% if @info_request.public_body.info_requests.size > 0 %>
            Browse <%= link_to "other requests", public_body_url(@info_request.public_body)  %>
            to '<%= h(@info_request.public_body.name) %>'
            for examples of how to word your request.
        <% else %>
            Browse <%= link_to "other requests", request_list_url %> for examples of how to word your request.
        <% end %>

Write your request in simple, precise language.

Ask for specific documents or information, this site is not suitable for general enquiries.

Keep it focussed. If you ask for everything it might cost too much and you might get nothing.

This site is public. Everything you type (except your email address) and any response will be published.

    <% if @info_request.public_body.notes != "" %>

Special note for this authority!

<%=MySociety::Format.make_clickable(@info_request.public_body.notes) %>

    <% end %>

    <% if @info_request.public_body.eir_only? %>

Please ask for environmental information only

The Freedom of Information Act does not apply to <%=h(@info_request.public_body.name)%>.
        However, you have the right to request environmental
        information under a different law (explanation).
        This covers a very wide spectrum of information about the state of
        the natural and built environment, such as:

Air, water, soil, land, flora and fauna (including how these effect
        human beings)

Information on emissions and discharges (e.g. noise, energy,
        radiation, waste materials)

Human health and safety

Cultural sites and built structures (as they may be affected by the
        environmental factors listed above)

Plans and administrative measures that affect these matters

Please only request information that comes under those categories, do not waste your
        time or the time of the public authority by requesting unrelated information.

    <% end %>

<% form_for(:info_request, @info_request, :html => { :id => 'write_form' }  ) do |f| %>

			To:
			<%=h(@info_request.public_body.name)%>

			Summary:
			<%= f.text_field :title, :size => 50 %>

			(a one line summary of the information you are requesting,
			e.g.
            <% if @info_request.law_used == 'eir' %>
                'Pollution levels over time for the River Tyne'
            <% else %>
                'Crime statistics by ward level for Wales'
            <% end %>
            )

		<% fields_for :outgoing_message do |o| %>

			Your request:
			<%= o.text_area :body, :rows => 20, :cols => 60 %>

		<% end %>

        <% if !@user %>

                Everything that you enter on this page, including your name,
                will be displayed publicly on
                this website (why?).
                If you are thinking of using a pseudonym,
                please read this first.

        <% else %>

                Everything that you enter on this page
                will be displayed publicly on
                this website (why?).

        <% end %>

			Can I request information about myself?
			No! (Click here for details)

			<%= f.hidden_field(:public_body_id, { :value => @info_request.public_body_id } ) %>
			<%= hidden_field_tag(:submitted_new_request, 1 ) %>
			<%= hidden_field_tag(:preview, 1 ) %>
			<%= submit_tag "Preview your public request" %>

<% end %>


label of button changed from Update to Assign Survey

git-svn-id: f67d969b640da65cb7bc1d229e09fd6d2db44ae1@246 392d7b7b-3f31-0410-9dc3-c95a9635ea79

Surveys for Assignment: <%= @assignment.name %>

<%= form_tag(:action=>'assign_survey') %>
<select name="subset" onchange="document.forms[0].submit()">
	<option value="assigned"
		<% if params[:subset] == "assigned" -%>
			selected
		<% end -%>
	>Currently assigned surveys</option>
	<option value="mine"
		<% if params[:subset] == "mine" -%>
			selected
		<% end -%>
	>My surveys</option>
	<option value="public"
		<% if params[:subset] == "public" -%>
			selected
		<% end -%>
	>All public surveys</option>
</select>
<%= end_form_tag %>
<% if @surveys.length != 0 -%>
	<%= form_tag(:action=>'assign_survey')%>

			  Assigned
			Survey Name

		<% for survey in @surveys %>

				<input type=checkbox name="surveys[]" value="<%= survey.id %>"
				<% if @assigned_surveys.include?(survey) -%>
					checked="checked"
				<% end -%>
				>
			 	<%= survey.name %>

		<% end %>

		<%= submit_tag "Assign Survey", :name=>"update" %>
		<input type="hidden" name="submit_subset" value="<%= params[:subset] %>" />
		<input type="hidden" name="subset" value="assigned" />
	<%= end_form_tag %>

<% else -%>

No surveys match the selected criteria.

<% end -%>
<%= link_to 'Back', :action => 'list' %>

Surveys for Assignment: <%= @assignment.name %>

<%= form_tag(:action=>'assign_survey') %>
<select name="subset" onchange="document.forms[0].submit()">
	<option value="assigned"
		<% if params[:subset] == "assigned" -%>
			selected
		<% end -%>
	>Currently assigned surveys</option>
	<option value="mine"
		<% if params[:subset] == "mine" -%>
			selected
		<% end -%>
	>My surveys</option>
	<option value="public"
		<% if params[:subset] == "public" -%>
			selected
		<% end -%>
	>All public surveys</option>
</select>
<%= end_form_tag %>
<% if @surveys.length != 0 -%>
	<%= form_tag(:action=>'assign_survey')%>

			  Assigned
			Survey Name

		<% for survey in @surveys %>

				<input type=checkbox name="surveys[]" value="<%= survey.id %>"
				<% if @assigned_surveys.include?(survey) -%>
					checked="checked"
				<% end -%>
				>
			 	<%= survey.name %>

		<% end %>

		<%= submit_tag "Update", :name=>"update" %>
		<input type="hidden" name="submit_subset" value="<%= params[:subset] %>" />
		<input type="hidden" name="subset" value="assigned" />
	<%= end_form_tag %>

<% else -%>

No surveys match the selected criteria.

<% end -%>
<%= link_to 'Back', :action => 'list' %>


re-enabled creating asset tools

re-enabled creating asset tools

<%
page_classes = [
  Tool::Message, Tool::Discussion, Tool::TextDoc, Tool::RateMany, Tool::TaskList, Tool::Asset
]
%>

create a new page

<% page_classes.each_with_index do |page_class,i| -%>

  <%= link_to "#{page_class.class_display_name.t}: #{page_class.class_description.t}",
    {:controller => 'tool/'+page_class.controller, :action => 'create',
     :id => page_class.class_display_name.nameize, :group_id => params[:group_id]},
    {:style => "background: url(/images/pages/big/#{page_class.icon}) no-repeat 0% 50%", :class => 'page-link'} %>

<% end -%>

<%
page_classes = [
  Tool::Message, Tool::Discussion, Tool::TextDoc, Tool::RateMany, Tool::TaskList
  #, Tool::Asset
]
%>

create a new page

<% page_classes.each_with_index do |page_class,i| -%>

  <%= link_to "#{page_class.class_display_name.t}: #{page_class.class_description.t}",
    {:controller => 'tool/'+page_class.controller, :action => 'create',
     :id => page_class.class_display_name.nameize, :group_id => params[:group_id]},
    {:style => "background: url(/images/pages/big/#{page_class.icon}) no-repeat 0% 50%", :class => 'page-link'} %>

<% end -%>


When making follow up, make clear must be about request.

    <% if @internal_review %>

Request an internal review
        from <%=h OutgoingMailer.name_for_followup(@info_request, nil) %>

    <% elsif incoming_message.nil? || !incoming_message.valid_to_reply_to? %>

Send a public follow up message
        to <%=h OutgoingMailer.name_for_followup(@info_request, nil) %>

    <% else %>

Send a public reply to
        <%=h OutgoingMailer.name_for_followup(@info_request, incoming_message) %>

    <% end %>

    <% if @info_request.allow_new_responses_from == 'nobody' %>

Follow ups and new responses to this request have been stopped to prevent spam. Please
        contact us if you are <%= user_link(@info_request.user) %>
        and need to send a follow up.

    <% else %>
        <% if @internal_review %>

            If you are dissatisfied by the response you got from
            the public authority, you have the right to
            complain (details).

        <% end %>

Please only write messages directly relating to your
        request '<%= request_link(@info_request) %>'. If you would like to ask for information
        that was not in your original request, then
        <%= link_to "file a new request", new_request_to_body_url(:public_body_id => @info_request.public_body.id.to_s) %>.

        <% if @info_request.calculate_status == 'waiting_response_overdue' %>

            <% if @info_request.working_days_20_overdue? %>
                This request is long overdue a response.
            <% else %>
                This request is overdue a response.
            <% end %>
            You can say that, by law, the authority should have answered
            promptly. If they have not given you a legal
            reason why they need extra time
            (<%= link_to "more details", about_url + "#quickly_response" %>), then
            you can say they are breaking the law to have not replied by
            <%= simple_date(@info_request.date_response_required_by) %>.
            <% if @info_request.public_body.is_school? %>
                This is a school, so legally they get lots of extra slack if it is
                holiday time.
            <% end %>

        <% end %>

        <% form_for(:outgoing_message, @outgoing_message, :html => { :id => 'followup_form' }, :url => incoming_message.nil? ? show_response_no_followup_url(:id => @info_request.id) : show_response_url(:id => @info_request.id, :incoming_message_id => incoming_message.id)) do |o| %>

                <%= o.text_area :body, :rows => 10, :cols => 55 %>

            <% if @internal_review %>
                <%= hidden_field_tag "outgoing_message[what_doing]", "internal_review" %>
            <% else %>

What are you doing?

                <% if !@outgoing_message.errors[:what_doing_dummy].nil? %>

                <% else %>

                <% end %>

                        <%= radio_button "outgoing_message", "what_doing", "internal_review", :id => "internal_review" %>
                        I am requesting an internal review
                        (what's that?)

                        <%= radio_button "outgoing_message", "what_doing", "normal_sort", :id => "sort_normal" %>
                        Anything else, such as clarifying, prompting, thanking

            <% end %>

            <% if @internal_review %>

Edit and add more details to the message above,
                explaining why you would like a review.

Say that you are dissatisfied by their response

Set out your reasons why

Ask them to review their response

            <% end %>

                <%= hidden_field_tag 'submitted_followup', 1 %>
                <%= hidden_field_tag(:preview, 1 ) %>
                <% if @internal_review_pass_on %>
                    <%= hidden_field_tag(:internal_review, 1 ) %>
                <% end %>
                <%= submit_tag "Preview your message" %>

        <% end %>

            <% if not @is_owning_user %>
            (You will be asked to sign in as <%= user_link(@info_request.user) %>)
            <% end %>

    <% end %>

    <% if @internal_review %>

Request an internal review
        from <%=h OutgoingMailer.name_for_followup(@info_request, nil) %>

    <% elsif incoming_message.nil? || !incoming_message.valid_to_reply_to? %>

Send a public follow up message
        to <%=h OutgoingMailer.name_for_followup(@info_request, nil) %>

    <% else %>

Send a public reply to
        <%=h OutgoingMailer.name_for_followup(@info_request, incoming_message) %>

    <% end %>

    <% if @info_request.allow_new_responses_from == 'nobody' %>

Follow ups and new responses to this request have been stopped to prevent spam. Please
        contact us if you are <%= user_link(@info_request.user) %>
        and need to send a follow up.

    <% else %>

Please only write messages directly relating to your
        request '<%= request_link(@info_request) %>'. If you would like to ask for information
        that was not in your original request, then
        <%= link_to "file a new request", new_request_to_body_url(:public_body_id => @info_request.public_body.id.to_s) %>.

        <% if @internal_review %>

            If you are dissatisfied by the response you got from
            the public authority, you have the right to
            complain (details).

        <% end %>

        <% if @info_request.calculate_status == 'waiting_response_overdue' %>

            <% if @info_request.working_days_20_overdue? %>
                This request is long overdue a response.
            <% else %>
                This request is overdue a response.
            <% end %>
            You can say that, by law, the authority should have answered
            promptly. If they have not given you a legal
            reason why they need extra time
            (<%= link_to "more details", about_url + "#quickly_response" %>), then
            you can say they are breaking the law to have not replied by
            <%= simple_date(@info_request.date_response_required_by) %>.
            <% if @info_request.public_body.is_school? %>
                This is a school, so legally they get lots of extra slack if it is
                holiday time.
            <% end %>

        <% end %>

        <% form_for(:outgoing_message, @outgoing_message, :html => { :id => 'followup_form' }, :url => incoming_message.nil? ? show_response_no_followup_url(:id => @info_request.id) : show_response_url(:id => @info_request.id, :incoming_message_id => incoming_message.id)) do |o| %>

                <%= o.text_area :body, :rows => 10, :cols => 55 %>

            <% if @internal_review %>
                <%= hidden_field_tag "outgoing_message[what_doing]", "internal_review" %>
            <% else %>

What are you doing?

                <% if !@outgoing_message.errors[:what_doing_dummy].nil? %>

                <% else %>

                <% end %>

                        <%= radio_button "outgoing_message", "what_doing", "internal_review", :id => "internal_review" %>
                        I am requesting an internal review
                        (what's that?)

                        <%= radio_button "outgoing_message", "what_doing", "normal_sort", :id => "sort_normal" %>
                        Anything else, such as clarifying, prompting, thanking

            <% end %>

            <% if @internal_review %>

Edit and add more details to the message above,
                explaining why you would like a review.

Say that you are dissatisfied by their response

Set out your reasons why

Ask them to review their response

            <% end %>

                <%= hidden_field_tag 'submitted_followup', 1 %>
                <%= hidden_field_tag(:preview, 1 ) %>
                <% if @internal_review_pass_on %>
                    <%= hidden_field_tag(:internal_review, 1 ) %>
                <% end %>
                <%= submit_tag "Preview your message" %>

        <% end %>

            <% if not @is_owning_user %>
            (You will be asked to sign in as <%= user_link(@info_request.user) %>)
            <% end %>

    <% end %>


Remove redundant action form field (left over from previous experiments)

<formset class="form-horizontal">
 <legend>Actions</legend>
 <% form_tag '../redeliver_incoming', :class => "form form-inline" do %>

  Redeliver message to one or more other requests

      <% if @info_requests && @info_requests.size == 1 %>
        <%= text_field_tag 'url_title', @info_requests[0].url_title, { :size => 20 } %>
      <% else %>
        <%= text_field_tag 'url_title', "", { :size => 20 } %>
      <% end %>
      <%= hidden_field_tag 'redeliver_incoming_message_id', incoming_message.id %>
      <%= submit_tag "Redeliver to another request", :class => "btn" %>

id or url_title; you can supply more than one, separated by commas

 <% end %>

  Generate FOI officer upload URL

   <%= link_to 'Generate and take me there', "../generate_upload_url/#{incoming_message.info_request.id}?incoming_message_id=#{incoming_message.id}", :class => "btn", :id => "generate_upload_url" %>

 <% form_tag '../destroy_incoming', :class => "form form-inline" do %>

   Destroy message

    <%= hidden_field_tag 'incoming_message_id', incoming_message.id %>
    <%= submit_tag "Destroy message", :class => "btn btn-danger", :confirm => "This is permanent! Are you sure?" %>

 <% end %>

 <% if @raw_email.nil? %>
  <%# we're not on the raw_email page itself %>

   Inspect email

     <%= link_to "View raw email", "../show_raw_email/#{incoming_message.raw_email_id}", :class => "btn", :id => "show_raw_email" %>

 <% end %>

</formset>

<formset class="form-horizontal">
 <legend>Actions</legend>
 <% form_tag '../redeliver_incoming', :class => "form form-inline" do %>

  Redeliver message to one or more other requests

      <% if @info_requests && @info_requests.size == 1 %>
        <%= text_field_tag 'url_title', @info_requests[0].url_title, { :size => 20 } %>
      <% else %>
        <%= text_field_tag 'url_title', "", { :size => 20 } %>
      <% end %>
      <%= hidden_field_tag 'redeliver_incoming_message_id', incoming_message.id %>
      <%= submit_tag "Redeliver to another request", :class => "btn" %>

id or url_title; you can supply more than one, separated by commas

 <% end %>

  Generate FOI officer upload URL

   <%= link_to 'Generate and take me there', "../generate_upload_url/#{incoming_message.info_request.id}?incoming_message_id=#{incoming_message.id}", :class => "btn", :id => "generate_upload_url" %>

 <% form_tag '../destroy_incoming', :class => "form form-inline" do %>

   Destroy message

    <%= hidden_field_tag 'incoming_message_id', incoming_message.id %>
    <%= submit_tag "Destroy message", :class => "btn btn-danger", :confirm => "This is permanent! Are you sure?" %>

 <% end %>

 <% form_tag '../copy_incoming', :class => "form form-inline" do %>

  Clone message to another request (id or url_title)

      <% if @info_requests && @info_requests.size == 1 %>
        <%= text_field_tag 'clone_url_title', @info_requests[0].url_title, { :size => 20 } %>
      <% else %>
        <%= text_field_tag 'clone_url_title', "", { :size => 20 } %>
      <% end %>
      <%= submit_tag "Clone to another request", :class => "btn" %>

This will clone the incoming message to another request, and mark that request as "complete"

      <%= hidden_field_tag 'copy_incoming_message_id', incoming_message.id %>

 <% end %>

 <% if @raw_email.nil? %>
  <%# we're not on the raw_email page itself %>

   Inspect email

     <%= link_to "View raw email", "../show_raw_email/#{incoming_message.raw_email_id}", :class => "btn", :id => "show_raw_email" %>

 <% end %>

</formset>


Reword the noscript section a bit.

Reword the noscript section a bit.

<% content_for :greeting do %>
<% if @user and !@user.home_lon.nil? and !@user.home_lat.nil? %>
<%= link_to_function 'home', "setPosition(#{@user.home_lat}, #{@user.home_lon}, 10)" %> |
<% end %>
<% end %>

<%= render :partial => 'sidebar', :locals => { :onopen => "resizeMap();", :onclose => "resizeMap();" } %>
<%= render :partial => 'key' %>
<%= render :partial => 'search' %>

You are either using a browser that doesn't support javascript, or you have disabled javascript.

OpenStreetMap uses javascript for its slippy map.

You may want to try the Tiles@Home static tile browser if you are unable to enable javascript.

Permalink

http://creativecommons.org/licenses/by-sa/2.0/
http://openstreetmap.org/

Licensed under the Creative Commons Attribution-Share Alike 2.0 license
by the OpenStreetMap project and its contributors.

<% if params['mlon'] and params['mlat'] %>
<% marker = true %>
<% mlon = h(params['mlon']) %>
<% mlat = h(params['mlat']) %>
<% end %>

<% if params['minlon'] and params['minlat'] and params['maxlon'] and params['maxlat'] %>
<% bbox = true %>
<% minlon = h(params['minlon']) %>
<% minlat = h(params['minlat']) %>
<% maxlon = h(params['maxlon']) %>
<% maxlat = h(params['maxlat']) %>
<% end %>

<% if params['lon'] and params['lat'] %>
<% lon =  h(params['lon']) %>
<% lat =  h(params['lat']) %>
<% zoom =  h(params['zoom'] || '5') %>
<% layers = h(params['layers']) %>
<% elsif params['mlon'] and params['mlat'] %>
<% lon = h(params['mlon']) %>
<% lat = h(params['mlat']) %>
<% zoom =  h(params['zoom'] || '12') %>
<% layers = h(params['layers']) %>
<% elsif cookies.key?("location") %>
<% lon,lat,zoom,layers = cookies["location"].split(",") %>
<% elsif @user and !@user.home_lon.nil? and !@user.home_lat.nil? %>
<% lon =  @user.home_lon %>
<% lat =  @user.home_lat %>
<% zoom = '10' %>
<% else %>
<% session[:location] = OSM::IPLocation(request.env['REMOTE_ADDR']) unless session[:location] %>
<% if session[:location] %>
<% bbox = true %>
<% minlon = session[:location][:minlon] %>
<% minlat = session[:location][:minlat] %>
<% maxlon = session[:location][:maxlon] %>
<% maxlat = session[:location][:maxlat] %>
<% else %>
<% lon =  '-0.1' %>
<% lat =  '51.5' %>
<% zoom =  h(params['zoom'] || '5') %>
<% layers = h(params['layers']) %>
<% end %>
<% end %>

<%= javascript_include_tag '/openlayers/OpenLayers.js' %>
<%= javascript_include_tag '/openlayers/OpenStreetMap.js' %>
<%= javascript_include_tag 'map.js' %>

<% content_for :greeting do %>
<% if @user and !@user.home_lon.nil? and !@user.home_lat.nil? %>
<%= link_to_function 'home', "setPosition(#{@user.home_lat}, #{@user.home_lon}, 10)" %> |
<% end %>
<% end %>

<%= render :partial => 'sidebar', :locals => { :onopen => "resizeMap();", :onclose => "resizeMap();" } %>
<%= render :partial => 'key' %>
<%= render :partial => 'search' %>

You are either using a browser that doesn't support javascript, or you have disabled javascript.

OpenStreetMap uses javascript for its slippy map.

Try the OpenStreetMap static tile browser.

Permalink

http://creativecommons.org/licenses/by-sa/2.0/
http://openstreetmap.org/

Licensed under the Creative Commons Attribution-Share Alike 2.0 license
by the OpenStreetMap project and its contributors.

<% if params['mlon'] and params['mlat'] %>
<% marker = true %>
<% mlon = h(params['mlon']) %>
<% mlat = h(params['mlat']) %>
<% end %>

<% if params['minlon'] and params['minlat'] and params['maxlon'] and params['maxlat'] %>
<% bbox = true %>
<% minlon = h(params['minlon']) %>
<% minlat = h(params['minlat']) %>
<% maxlon = h(params['maxlon']) %>
<% maxlat = h(params['maxlat']) %>
<% end %>

<% if params['lon'] and params['lat'] %>
<% lon =  h(params['lon']) %>
<% lat =  h(params['lat']) %>
<% zoom =  h(params['zoom'] || '5') %>
<% layers = h(params['layers']) %>
<% elsif params['mlon'] and params['mlat'] %>
<% lon = h(params['mlon']) %>
<% lat = h(params['mlat']) %>
<% zoom =  h(params['zoom'] || '12') %>
<% layers = h(params['layers']) %>
<% elsif cookies.key?("location") %>
<% lon,lat,zoom,layers = cookies["location"].split(",") %>
<% elsif @user and !@user.home_lon.nil? and !@user.home_lat.nil? %>
<% lon =  @user.home_lon %>
<% lat =  @user.home_lat %>
<% zoom = '10' %>
<% else %>
<% session[:location] = OSM::IPLocation(request.env['REMOTE_ADDR']) unless session[:location] %>
<% if session[:location] %>
<% bbox = true %>
<% minlon = session[:location][:minlon] %>
<% minlat = session[:location][:minlat] %>
<% maxlon = session[:location][:maxlon] %>
<% maxlat = session[:location][:maxlat] %>
<% else %>
<% lon =  '-0.1' %>
<% lat =  '51.5' %>
<% zoom =  h(params['zoom'] || '5') %>
<% layers = h(params['layers']) %>
<% end %>
<% end %>

<%= javascript_include_tag '/openlayers/OpenLayers.js' %>
<%= javascript_include_tag '/openlayers/OpenStreetMap.js' %>
<%= javascript_include_tag 'map.js' %>


Fixed item link on users page.

Fixed item link on users page.

<%=h @user.login %>

<% if @user.about %>

<%= h @user.about %>

<% end %>

type	title

  <% @user.owned.each do |item|
       type = item.class.to_s.downcase %>

      <%=h type %>
      <%= link_to highlight(h(item.title), @query), polymorphic_path(item) %>

  <% end %>

<%=h @user.login %>

<% if @user.about %>

<%= h @user.about %>

<% end %>

type	title

  <% @user.owned.each do |item|
       type = item.class.to_s.downcase %>

      <%=h type %>
      <%= link_to h(item.title), { :controller => type,
                                       :action => :show,
                                       :id => item.id } %>

  <% end %>


Scribbish update 1.  Closes #1099

Scribbish update 1.  Closes #1099

git-svn-id: 70ab0960c3db1cbf656efd6df54a8f3de72dc710@1271 820eb932-12ee-0310-9ca8-eeb645f39767

  <% if @article.published_comments.any? -%>
    <% for comment in @article.published_comments -%>
    <li class="comment" id="comment-<%= comment.id %>">

        <%= content_tag(:div, gravatar_tag(comment.email)) if this_blog.use_gravatar and comment.email %>
        <%= (comment.url.blank?) ? h(comment.author) : link_to(h(comment.author), comment.url) %>
        <abbr title="<%= comment.created_at.xmlschema %>"><%= distance_of_time_in_words comment.article.published_at, comment.created_at %> later:

        <%= comment.html %>

    <% end -%>
  <% else -%>

No comments

  <% end -%>

  <% for comment in @article.published_comments -%>
        <li class="comment" id="comment-<%= comment.id %>">

            <%= content_tag(:div, gravatar_tag(comment.email)) if this_blog.use_gravatar and comment.email %>
            <%= (comment.url.blank?) ? h(comment.author) : link_to(h(comment.author), comment.url) %>
                <abbr title="<%= comment.created_at.xmlschema %>"><%= js_distance_of_time_in_words_to_now comment.created_at %>

            <%= comment.html %>

        <% end -%>


pagination

pagination

<% html_title(l(:charts_menu_label)) -%>

<% content_for :header_tags do %>
  <%= javascript_include_tag '/plugin_assets/open_flash_chart/javascripts/swfobject.js' %>
  <%= javascript_include_tag '/plugin_assets/redmine_charts/javascripts/charts.js' %>
<% end %>

<%=l(:charts_menu_label)%>
    <%= show_charts_menu %>

<% if @help %>

<%= @help %>

<% end %>

<% if @show_conditions %>

        <% form_tag '#', :method => :get do %>
          <% if @date_condition %>

<%= show_date_condition(params[:range_steps], params[:range_in], params[:range_offset]) %>

          <% end %>
          <% unless @grouping_options.empty? and @conditions_options.empty? %>

              <% unless @grouping_options.empty? %>

<%= l(:charts_group_by) %> <%= select_tag :grouping, options_for_select(@grouping_options, params[:grouping] ? params[:grouping].to_sym : nil) %>

              <% end %>
              <% @conditions_options.each do |condition| %>
                <% if condition[1].nil? %>

<%= l("charts_condition_#{condition[0]}".to_sym) %> <%= text_field_tag "conditions_#{condition[0]}".to_sym, params["conditions_#{condition[0]}".to_sym].blank? ? nil : Integer(params["conditions_#{condition[0]}".to_sym]) %>

                <% else %>

<%= l("charts_condition_#{condition[0]}".to_sym) %> <%= select_tag "conditions_#{condition[0]}".to_sym, options_for_select(condition[1], params["conditions_#{condition[0]}".to_sym] ? Integer(params["conditions_#{condition[0]}".to_sym]) : nil) %>

                <% end %>
              <% end %>

          <% end %>
          <%= submit_tag l(:charts_button) %>
        <% end %>

<% end %>

<div class="splitcontentright" style="width:<%= @show_conditions ? "68%" : "100%" %>">
    <%= show_graph %>

<% html_title(l(:charts_menu_label)) -%>

<% content_for :header_tags do %>
  <%= javascript_include_tag '/plugin_assets/open_flash_chart/javascripts/swfobject.js' %>
  <%= javascript_include_tag '/plugin_assets/redmine_charts/javascripts/charts.js' %>
<% end %>

<%=l(:charts_menu_label)%>
    <%= show_charts_menu %>

<% if @help %>

<%= @help %>

<% end %>

<% if @show_conditions %>

        <% form_tag '#', :method => :get do %>

              <% if @date_condition %>

<%= show_date_condition(params[:range_steps], params[:range_in], params[:range_offset]) %>

              <% end %>

          <% unless @grouping_options.empty? %>

<%= l(:charts_group_by) %> <%= select_tag :grouping, options_for_select(@grouping_options, params[:grouping] ? params[:grouping].to_sym : nil) %>

              <% end %>
              <% @conditions_options.each do |condition| %>
                <% if condition[1].nil? %>

<%= l("charts_condition_#{condition[0]}".to_sym) %> <%= text_field_tag "conditions_#{condition[0]}".to_sym, params["conditions_#{condition[0]}".to_sym].blank? ? nil : Integer(params["conditions_#{condition[0]}".to_sym]) %>

                <% else %>

<%= l("charts_condition_#{condition[0]}".to_sym) %> <%= select_tag "conditions_#{condition[0]}".to_sym, options_for_select(condition[1], params["conditions_#{condition[0]}".to_sym] ? Integer(params["conditions_#{condition[0]}".to_sym]) : nil) %>

                <% end %>
              <% end %>

          <%= submit_tag l(:charts_button) %>
        <% end %>

<% end %>

<div class="splitcontentright" style="width:<%= @show_conditions ? "68%" : "100%" %>">
    <%= show_graph %>


use single method and link to it when appropriate

<% %>

    <li <%= @mode == "day" ? ' class="selected"' : ' class="unselected"' %>>
      <% if @mode == "day" %>
        <%= tab("Day") %>
      <% else %>
        <%= link_to tab("Day"), "#{home_path}/simple_calendar/day_view?date=#{@date}" %>
      <% end %>

    <li <%= @mode != "day" ? ' class="selected"' : ' class="unselected"' %>>
       <% if @mode != "day" %>
         <%= tab("Month") %>
       <% else %>
        <%= link_to tab("Month"), "#{home_path}/simple_calendar/month_view?date=#{@date}" %>
       <% end %>

<% %>

    <li <%= @mode == "day" ? ' class="selected"' : ' class="unselected"' %>>
       <% if @mode == "day" %>
         <%= tab("Day") %>
       <% else %>
         <%= tab_link("Day") %>
       <% end %>

    <li <%= @mode != "day" ? ' class="selected"' : ' class="unselected"' %>>
       <% if @mode != "day" %>
         <%= tab("Month") %>
       <% else %>
         <%= tab_link("Month") %>
       <% end %>


Make a sanish start date for the year dropdown

<% form_tag({:action => "signup"}, {:id => "signup_form"}) do %>
    <%= foi_error_messages_for :user_signup %>

        <%= _('Your e-mail:')%>
        <%= text_field 'user_signup', 'email', { :size => 20 } %>

        <%= _('We will not reveal your email address to anybody unless you or
        the law tell us to (details). ') %[help_privacy_path] %>

         <%= _('Your name:')%>
        <%= text_field 'user_signup', 'name', { :size => 20 } %>

         <%= _('Your name will appear publicly
        (why?)
        on this website and in search engines. If you
        are thinking of using a pseudonym, please
        read this first.') % [help_privacy_path+"#public_request", help_privacy_path+"#real_name"] %>

        <%= _('Your address:')%>
        <%= text_area 'user_signup', 'address', { :cols => 20, :rows => 6 } %>

        <%= _('Your address will be sent to authorities when you make a request.  We will not reveal your address on the website.') %>

        <%= _('Your DOB:')%>
        <%= text_field 'user_signup', 'dob', { :size => 20, :class => 'dob-datepicker' } %>

        <%= _('Your DOB will also be sent to authorities when you make a request.  We will not reveal your DOB on the website.') %>

         <%= _('Password:')%>
        <%= password_field 'user_signup', 'password', { :size => 15 } %>

         <%= _('Password: (again)')%>
        <%= password_field 'user_signup', 'password_confirmation', { :size => 15 } %>

    <% if @request_from_foreign_country %>
    <%= recaptcha_tags %>
    <% end %>

        <%= hidden_field_tag 'token', params[:token], {:id => 'signup_token' } %>
        <%= hidden_field_tag :modal, params[:modal], {:id => 'signup_modal' } %>
        <%= submit_tag _('Sign up') %>

<% end %>


test for cascading pieces

test for cascading pieces


Analytics added.

Analytics added.

<%
#
# Nathan Reed, 29/04/2010

$LOAD_PATH << './lib' << '../shared'

begin
	load './lib/so-db.rb'
rescue LoadError
	load '../shared/so-db.rb'
end

require 'rubygems'
require 'json'

db = SoSql.real_connect();

q_count = db.get_rate('so-question-count', 4);
a_count = db.get_rate('so-answer-count', 4);
c_count = db.get_rate('so-comment-count', 4);

# the answer count is really the combined question and answer count
# so we need to subtract the question count to get the *actual* answer count
a_count['count'] -= q_count['count'];
a_count['rate'] -= q_count['rate'];

count_data = [q_count, a_count, c_count];

db.close;

def to_hourly(rate)
	return (rate*3600).round().to_s + ' / hr';
end

%>

<!doctype html public "-//w3c//dtd html 4.0 strict//en">

<title>stackoverflow counter</title>

<meta http-equiv="REFRESH" content="300">

<link rel="stylesheet" href="css/default.css" type="text/css" media="screen, projection">
<link rel="stylesheet" href="css/so-count.css" type="text/css" media="screen, projection">

 stackoverflow/counter

 ...

 comments <%= to_hourly(c_count['rate']) %>

 ...

 answers <%= to_hourly(a_count['rate']) %>

 ...

 questions <%= to_hourly(q_count['rate']) %>

data updated from stackoverflow.com every 15 minutes

Nathan Reed (c) 2010 | popacular.com

source code is on github.com

<% if $IS_PROD %>

<% end %>

<%
#
# Nathan Reed, 29/04/2010

$LOAD_PATH << './lib' << '../shared'

begin
	load './lib/so-db.rb'
rescue LoadError
	load '../shared/so-db.rb'
end

require 'rubygems'
require 'json'

db = SoSql.real_connect();

q_count = db.get_rate('so-question-count', 4);
a_count = db.get_rate('so-answer-count', 4);
c_count = db.get_rate('so-comment-count', 4);

# the answer count is really the combined question and answer count
# so we need to subtract the question count to get the *actual* answer count
a_count['count'] -= q_count['count'];
a_count['rate'] -= q_count['rate'];

count_data = [q_count, a_count, c_count];

db.close;

def to_hourly(rate)
	return (rate*3600).round().to_s + ' / hr';
end

%>

<!doctype html public "-//w3c//dtd html 4.0 strict//en">

<title>Stackoverflow Counter</title>

<meta http-equiv="REFRESH" content="300">

<link rel="stylesheet" href="css/default.css" type="text/css" media="screen, projection">
<link rel="stylesheet" href="css/so-count.css" type="text/css" media="screen, projection">

 stackoverflow/counter

 ...

 comments <%= to_hourly(c_count['rate']) %>

 ...

 answers <%= to_hourly(a_count['rate']) %>

 ...

 questions <%= to_hourly(q_count['rate']) %>

data updated from stackoverflow.com every 15 minutes

Nathan Reed (c) 2010 | popacular.com

source code is on github.com


Added contact form

Added contact form

Kontaktujte

instituci pro vznesení dotazu

Zde můžete vznést dotaz veřejnou cestou a odpověď instituce bude také zveřejněna.

Přečtěte si také, jak zacházíme s
      osobními informacemi..

složky státní správy přímo

Napište svému zastupiteli, tedy poslanci nebo senátoroviprostřednictvím spřáteleného projektu NapišteJim.cz, který funguje jako živá brána emailové konverzace mezi občany a politiky..

Vznést dotaz na instituci můžete také přímo, pokud nechcete, aby byl váš dotaz zveřejněn na stránkách Informace pro všechny.

tým stránek Informace pro všechny

Ještě než se na nás obrátíte, přečtěte si nejdříve nápovědu, kde požadovanou odpověď můžete najít mnohem rychleji.

Jsme schopni vám pomoci pouze s technickými potížemi nebo s dotazem, který se týká svobodného přístupu k informacím. Pokud chcete získat informace od složek státní správy, tedy institucí, politiků nebo senátorů, využijte formulář pro vznesení dotazu, využijte služeb portálu NapišteJim.cz nebo oslovte státní správu přímo.

Rádi se dozvíme, zda jsou pro vás stránky Informace pro všechny užitečné a pomohly vám. Můžete vyplnit kontaktní formulář níže nebo poslat e-mail na postmaster@informaceprovsechny.cz. Budeme se snažit váš dotaz zodpovědět co nejrychleji.

Pro vaši informaci – jsme registrováni jako občanské sdružení, nejsme součástí státní správy.

<% form_for :contact do |f| %>

<% if not @user %>

Jméno
<%= f.text_field :name, :size => 20 %>
(nebo <%= link_to "se přihlašte", signin_url(:r => request.request_uri) %>)

Email:
<%= f.text_field :email, :size => 20 %>

<% end %>

Předmět:
<%= f.text_field :subject, :size => 50 %>

Zpráva pro tým stránek IPV:
<%= f.text_area :message, :rows => 10, :cols => 60 %>

<% if !@last_request.nil? %>

Přidejte odkaz k dotazu:
<%=request_link(@last_request) %>
<%= submit_tag "remove", :name => 'remove' %>

<% end %>
<% if !@last_body.nil? %>

Přidejte odkaz na instituce:
<%=public_body_link(@last_body) %>
<%= submit_tag "remove", :name => 'remove' %>

<% end %>

  Jsme schopni vám pomoci pouze s technickými potížemi nebo s dotazem, který se týká svobodného přístupu k informacím.

<%= hidden_field_tag(:submitted_contact_form, 1) %>
<%= submit_tag "Odeslat dotaz týmu stránek Informace pro všechny" %>
<-- tuto stránku spravuje občanské sdružení Informace pro všechny, nikoliv státní správa.

Pokud jste poskytovatel informací a považujete naši službu za užitečnou, požádejte své IT nebo oddělení spravující vaše webové stránky o propojení se stránkami Informace pro všechny – ideálně tam, kde uveřejňujete povinné informace.

<% end %>


ActionItem707: fixing HTML

ActionItem707: fixing HTML

<%= _('Profile settings') %>

<%= error_messages_for :profile %>

<% labelled_form_for :profile_data, @profile, :html => { :multipart => true } do |f| %>

  <%= render :partial => partial_for_class(@profile.class), :locals => { :f => f } %>

<%= _('Change picture') %>

    <% f.fields_for :image_builder, @profile.image do |i| %>
      <%= file_field_or_thumbnail(_('Image:'), @profile.image, i) %>
    <% end %>

<%= _('Privacy options') %>

    <%= _('This profile is:') %>

  <% if profile.kind_of?(Person) %>

        <%= radio_button 'profile_data', 'public_profile', 'true' %>
        <%= _('Public') %>

        <%= radio_button 'profile_data', 'public_profile', 'false' %>
        <%= _('Private') %>

       <%= _('Activate Intranet access (restricted area only for me)') %> 	<%= _('Yes') %>	<%= _('Yes') %>

       <%= _('Show my website to all internet users') %> 	<%= _('Yes') %>	<%= _('No') %>

       <%= _('Show my website to my contacts (persons)') %> 	<%= _('Yes') %>	<%= _('Yes') %>

       <%= _('Include my contact in directory of people') %> 	<%= _('Yes') %>	<%= _('No') %>

  <% else %>

	<%= _('Public') %>	<%= _('Private')  %>

       <%= _('Activate Intranet access (restricted area only for members)') %> 	<%= _('Yes') %>	<%= _('Yes') %>

       <%= _('Show website of this group to all internet users') %> 	<%= _('Yes') %>	<%= _('No') %>

       <%= _('Show my website to members') %> 	<%= _('Yes') %>	<%= _('Yes') %>

       <%= _('Include this group directory of groups') %> 	<%= _('Yes') %>	<%= _('No') %>

  <% end %>

  <%= select_categories(:profile_data, _('Select the categories of your interest'), 2) %>

  <% button_bar do %>
    <%= submit_button('save', _('Save'), :cancel => {:action => 'index'}) %>
    <%= button(:back, _('Back to control panel'), :controller => 'profile_editor') %>
  <% end %>
<% end %>

<%# = generate_form :info, @info, {...} %>


working hours edit: fixed applying workday date to text field

<%= error_messages_for 'working_hours' %>

<%= f.hidden_field 'project_id' %>
<%= f.hidden_field 'issue_id' %>
<%= f.hidden_field 'user_id' %>

Workday
<%= f.text_field :workday, :size => 10 %><%= calendar_for('working_hours_workday') %>

<%= radio_button_tag("subform", "Timestamps", true, "onclick"=>"Element.hide('duration');Element.show('timestamps')") %> Timestamps
<%= radio_button_tag("subform", "Duration", false, "onclick"=>"Element.hide('timestamps');Element.show('duration')") %> Duration

<%= f.text_field :starting, :size => 25 %>

<%= f.text_field 'break', "size" => 5  %>

  <%= f.text_field :ending, :size => 25 %>
  Running: <%= check_box_tag 'running', "1", @working_hours.ending.nil?  %>

Hours
  <%= text_field_tag 'duration', @duration, "size" => 5  %>

<%= f.text_area 'comments', "cols" => 40, "rows" => 3  %>

<%= error_messages_for 'working_hours' %>

<%= f.hidden_field 'project_id' %>
<%= f.hidden_field 'issue_id' %>
<%= f.hidden_field 'user_id' %>

Workday
<%= f.text_field :workday, :size => 10 %><%= calendar_for('workday') %>

<%= radio_button_tag("subform", "Timestamps", true, "onclick"=>"Element.hide('duration');Element.show('timestamps')") %> Timestamps
<%= radio_button_tag("subform", "Duration", false, "onclick"=>"Element.hide('timestamps');Element.show('duration')") %> Duration

<%= f.text_field :starting, :size => 25 %>

<%= f.text_field 'break', "size" => 5  %>

  <%= f.text_field :ending, :size => 25 %>
  Running: <%= check_box_tag 'running', "1", @working_hours.ending.nil?  %>

Hours
  <%= text_field_tag 'duration', @duration, "size" => 5  %>

<%= f.text_area 'comments', "cols" => 40, "rows" => 3  %>


Refactoring how to get data profile

Refactoring how to get data profile

<% @project = @page.project %>

    <%= _('Name') %>
    <%= @project.name %>

    <%= _('License') %>
    <%= @project.license %>

    <%= _('Description') %>
    <%= @project.description %>

    <%= _('Repository type') %>
    <%= @project.repository.type %>

    <%= _('Repository address') %>
    <%= @project.repository.address %>

    <%= _('Configuration') %>
    <%= @project.configuration_name %>

<% if ! @project.error.nil? %>

<%= _('ERROR') %>

    <%= "State when error ocurred: #{@project.state}" %>

    <% error = @project.error %>
    <%= error.message %>

<% error.stack_trace.each do |trace| %>

<%= "#{trace.declaring_class}.#{trace.method_name}(#{trace.file_name}:#{trace.line_number})" %>

    <% end %>

<% elsif @project.state.end_with? 'ING' %>

    <%= _("Kalibro Service is #{@project.state.downcase} the source code.") %>

    <%= _('Reload the page manually in a few moments.') %>

<% elsif @project.state == 'READY' %>

<%= _('LAST RESULT') %>

  <% @project_result = @page.project_result %>

      <%= _('Date') %>
      <%= @project_result.date %>

      <%= _('Load time') %>
      <%= @project_result.formatted_load_time %>

      <%= _('Analysis time') %>
      <%= @project_result.formatted_analysis_time %>

<%= _('Source tree') %>

  <%= render :partial => 'source_tree', :locals => { :source_tree => @project_result.source_tree } %>
  <div id='module-result' data-profile="<%= @page.profile.identifier %>" data-project-id='<%= @page.id %>'>
    <%= render :partial => 'module_result', :locals => { :module_result => @page.module_result(@project.name) } %>

    loading results...

<% end %>

<% @project = @page.project %>

    <%= _('Name') %>
    <%= @project.name %>

    <%= _('License') %>
    <%= @project.license %>

    <%= _('Description') %>
    <%= @project.description %>

    <%= _('Repository type') %>
    <%= @project.repository.type %>

    <%= _('Repository address') %>
    <%= @project.repository.address %>

    <%= _('Configuration') %>
    <%= @project.configuration_name %>

<% if ! @project.error.nil? %>

<%= _('ERROR') %>

    <%= "State when error ocurred: #{@project.state}" %>

    <% error = @project.error %>
    <%= error.message %>

<% error.stack_trace.each do |trace| %>

<%= "#{trace.declaring_class}.#{trace.method_name}(#{trace.file_name}:#{trace.line_number})" %>

    <% end %>

<% elsif @project.state.end_with? 'ING' %>

    <%= _("Kalibro Service is #{@project.state.downcase} the source code.") %>

    <%= _('Reload the page manually in a few moments.') %>

<% elsif @project.state == 'READY' %>

<%= _('LAST RESULT') %>

  <% @project_result = @page.project_result %>

      <%= _('Date') %>
      <%= @project_result.date %>

      <%= _('Load time') %>
      <%= @project_result.formatted_load_time %>

      <%= _('Analysis time') %>
      <%= @project_result.formatted_analysis_time %>

<%= _('Source tree') %>

  <%= render :partial => 'source_tree', :locals => { :source_tree => @project_result.source_tree } %>
  <div id='module-result' data-profile="<%= @page.profile.name.downcase %>" data-project-id='<%= @page.id %>'>
    <%= render :partial => 'module_result', :locals => { :module_result => @page.module_result(@project.name) } %>

    loading results...

<% end %>


Enclosed webpage/upcoming/flickr urls in if conditions.

<%content_for("left") do-%>
<%= render :partial => "layouts/nav_bar", :locals => {:category => @event.class.to_s.pluralize, :property => @event.title} -%>

<%= link_to @event.title-%>

Agenda

  <%= @event.agenda -%>

Description

  <%= @event.description -%>

<%= link_to 'Edit', :action => 'edit', :id => @event %> |
<%= link_to 'Back', :action => 'list' %>
<%end-%>
<%content_for("right") do-%>
<%if @recent_events-%>

Recent events

  <%for event in @recent_events -%>

<%= link_to truncate(event.title,30), :id => event.id-%>

  <%end-%>

<%= link_to "Show all", :action => 'list'-%>
<%end-%>

Properties

Title: <%= @event.title-%>

  <%if @event.date and @event.date != ""%>
Event date: <%= @event.date.strftime("%d %b, %Y")-%>
<%end-%>
  <%if @event.event_url and @event.event_url != ""%>
<a href="<%=@event.event_url-%>">Event website
<%end-%>
  <%if @event.upcoming_url and @event.upcoming_url != ""%>
<a href="<%= @event.upcoming_url-%>">Y! Upcoming url
<%end-%>
  <%if @event.flickr_url and @event.flickr_url != ""%>
<a href="<%= @event.flickr_url-%>">Flickr page
<%end-%>

Created on: <%= @event.created_at.strftime("%d %m, %Y")-%>

<%end-%>

<%content_for("left") do-%>
<% for column in Event.content_columns %>

  <%= column.human_name %>: <%=h @event.send(column.name) %>

<% end %>

<%= link_to 'Edit', :action => 'edit', :id => @event %> |
<%= link_to 'Back', :action => 'list' %>
<%end-%>
<%content_for("left") do-%>
<%end-%>


Change where this link points to as I expected this to link to the section about pseudonyms

<% @title = _("Make an {{law_used_short}} request to '{{public_body_name}}'",:law_used_short=>h(@info_request.law_used_short),:public_body_name=>h(@info_request.public_body.name))  %>

<%= _('2. Ask for Information') %>

    <% if @existing_request %>

       <%= _('{{existing_request_user}} already
      created the same request on {{date}}. You can either view the existing request,
      or edit the details below to make a new but similar request.',:existing_request_user=>user_or_you_capital_link(@existing_request.user), :date=>simple_date(@existing_request.created_at), :existing_request=>request_url(@existing_request)) %>

    <% end %>

    <%= foi_error_messages_for :info_request, :outgoing_message %>

    <% form_for(:info_request, @info_request, :html => { :id => 'write_form' }  ) do |f| %>

            <%= _('To:') %>
            <%=h(@info_request.public_body.name)%>

                <% if @info_request.public_body.info_requests.size > 0 %>
                    <%= _("Browse other requests to '{{public_body_name}}' for examples of how to word your request.", :public_body_name=>h(@info_request.public_body.name), :url=>public_body_url(@info_request.public_body)) %>
                <% else %>
                    <%= _("Browse other requests for examples of how to word your request.", :url=>request_list_url) %>
                <% end %>

            <% if @info_request.public_body.has_notes? %>

<%= _('Special note for this authority!') %>

<%= @info_request.public_body.notes_as_html %>

            <% end %>

        <% if @info_request.public_body.eir_only? %>

<%= _('Please ask for environmental information only') %>

<%= _('The Freedom of Information Act does not apply to') %> <%=h(@info_request.public_body.name)%>.
            <%= _('However, you have the right to request environmental
            information under a different law') %> (explanation).
            <%= _('This covers a very wide spectrum of information about the state of
            the natural and built environment, such as:') %>

<%= _('Air, water, soil, land, flora and fauna (including how these effect
            human beings)') %>

<%= _('Information on emissions and discharges (e.g. noise, energy,
            radiation, waste materials)') %>

<%= _('Human health and safety') %>

<%= _('Cultural sites and built structures (as they may be affected by the
            environmental factors listed above)') %>

<%= _('Plans and administrative measures that affect these matters') %>

<%= _('Please only request information that comes under those categories, do not waste your
            time or the time of the public authority by requesting unrelated information.') %>

        <% end %>

                <%= _('Summary:') %>
                <%= f.text_field :title, :size => 50, :id =>"typeahead_search" %>

                (<%= _("a one line summary of the information you are requesting, \n\t\t\te.g.") %>
                  <%= render :partial => "summary_suggestion" %>)

<%= _('Write your request in simple, precise language.') %>

<%= _('Ask for specific documents or information, this site is not suitable for general enquiries.') %>

<%= _('Keep it focused, you\'ll be more likely to get what you want (why?).') % [help_requesting_path + '#focused'] %>

        <% fields_for :outgoing_message do |o| %>

            <%= _('Your request:') %>
            <%= o.text_area :body, :rows => 20, :cols => 60 %>

        <% end %>

        <% if !@user %>

                <%= _('Everything that you enter on this page, including your name,
                will be displayed publicly on
                this website forever (why?).') % [help_privacy_path+"#public_request"] %>
                <%= _('If you are thinking of using a pseudonym,
                please read this first.') % [help_privacy_path+"#real_name"] %>

        <% else %>

                <%= _('Everything that you enter on this page
                will be displayed publicly on
                this website forever (why?).') % [help_privacy_path+"#public_request"] %>

        <% end %>

            <%= _(" Can I request information about myself?\n" +
            "\t\t\tNo! (Click here for details)") % [help_requesting_path+"#data_protection"] %>

            <%= f.hidden_field(:public_body_id, { :value => @info_request.public_body_id } ) %>
            <%= hidden_field_tag(:submitted_new_request, 1 ) %>
            <%= hidden_field_tag(:preview, 1 ) %>
            <%= submit_tag _("Preview your public request") %>

        <% if !@info_request.tag_string.empty? %>

                <%= f.hidden_field(:tag_string) %>
                Tags: <%=h @info_request.tag_string %>

        <% end %>

<% end %>

<% @title = _("Make an {{law_used_short}} request to '{{public_body_name}}'",:law_used_short=>h(@info_request.law_used_short),:public_body_name=>h(@info_request.public_body.name))  %>

<%= _('2. Ask for Information') %>

    <% if @existing_request %>

       <%= _('{{existing_request_user}} already
      created the same request on {{date}}. You can either view the existing request,
      or edit the details below to make a new but similar request.',:existing_request_user=>user_or_you_capital_link(@existing_request.user), :date=>simple_date(@existing_request.created_at), :existing_request=>request_url(@existing_request)) %>

    <% end %>

    <%= foi_error_messages_for :info_request, :outgoing_message %>

    <% form_for(:info_request, @info_request, :html => { :id => 'write_form' }  ) do |f| %>

            <%= _('To:') %>
            <%=h(@info_request.public_body.name)%>

                <% if @info_request.public_body.info_requests.size > 0 %>
                    <%= _("Browse other requests to '{{public_body_name}}' for examples of how to word your request.", :public_body_name=>h(@info_request.public_body.name), :url=>public_body_url(@info_request.public_body)) %>
                <% else %>
                    <%= _("Browse other requests for examples of how to word your request.", :url=>request_list_url) %>
                <% end %>

            <% if @info_request.public_body.has_notes? %>

<%= _('Special note for this authority!') %>

<%= @info_request.public_body.notes_as_html %>

            <% end %>

        <% if @info_request.public_body.eir_only? %>

<%= _('Please ask for environmental information only') %>

<%= _('The Freedom of Information Act does not apply to') %> <%=h(@info_request.public_body.name)%>.
            <%= _('However, you have the right to request environmental
            information under a different law') %> (explanation).
            <%= _('This covers a very wide spectrum of information about the state of
            the natural and built environment, such as:') %>

<%= _('Air, water, soil, land, flora and fauna (including how these effect
            human beings)') %>

<%= _('Information on emissions and discharges (e.g. noise, energy,
            radiation, waste materials)') %>

<%= _('Human health and safety') %>

<%= _('Cultural sites and built structures (as they may be affected by the
            environmental factors listed above)') %>

<%= _('Plans and administrative measures that affect these matters') %>

<%= _('Please only request information that comes under those categories, do not waste your
            time or the time of the public authority by requesting unrelated information.') %>

        <% end %>

                <%= _('Summary:') %>
                <%= f.text_field :title, :size => 50, :id =>"typeahead_search" %>

                (<%= _("a one line summary of the information you are requesting, \n\t\t\te.g.") %>
                  <%= render :partial => "summary_suggestion" %>)

<%= _('Write your request in simple, precise language.') %>

<%= _('Ask for specific documents or information, this site is not suitable for general enquiries.') %>

<%= _('Keep it focused, you\'ll be more likely to get what you want (why?).') % [help_requesting_path + '#focused'] %>

        <% fields_for :outgoing_message do |o| %>

            <%= _('Your request:') %>
            <%= o.text_area :body, :rows => 20, :cols => 60 %>

        <% end %>

        <% if !@user %>

                <%= _('Everything that you enter on this page, including your name,
                will be displayed publicly on
                this website forever (why?).') % [help_privacy_path+"#public_request"] %>
                <%= _('If you are thinking of using a pseudonym,
                please read this first.') % [help_privacy_path+"#public_request"] %>

        <% else %>

                <%= _('Everything that you enter on this page
                will be displayed publicly on
                this website forever (why?).') % [help_privacy_path+"#public_request"] %>

        <% end %>

            <%= _(" Can I request information about myself?\n" +
            "\t\t\tNo! (Click here for details)") % [help_requesting_path+"#data_protection"] %>

            <%= f.hidden_field(:public_body_id, { :value => @info_request.public_body_id } ) %>
            <%= hidden_field_tag(:submitted_new_request, 1 ) %>
            <%= hidden_field_tag(:preview, 1 ) %>
            <%= submit_tag _("Preview your public request") %>

        <% if !@info_request.tag_string.empty? %>

                <%= f.hidden_field(:tag_string) %>
                Tags: <%=h @info_request.tag_string %>

        <% end %>

<% end %>


fix bug in the case of the action in the data browser when linking to relation members

    <%= h(relation_member.member_type.capitalize) %>
    <%= link_to relation_member.member_id.to_s, :action => relation_member.downcase.member_type, :id => relation_member.member_id %>
    <% unless relation_member.member_role.blank? %>
      as
      <%= h(relation_member.member_role) %>
    <% end %>

    <%= h(relation_member.member_type.capitalize) %>
    <%= link_to relation_member.member_id.to_s, :action => relation_member.member_type, :id => relation_member.member_id %>
    <% unless relation_member.member_role.blank? %>
      as
      <%= h(relation_member.member_role) %>
    <% end %>


ActionItem323: not forcing a specific order

git-svn-id: 43659daf80e124e0b603d67096418e58e4f21099@1728 3f533792-8f58-4932-b0fe-aaf55b0a4547

<div id="search-results" class="<%= 'only-one-result-box' if @results.size == 1 %>">

<% if @category && !@query.blank? %>

<%= link_to _('Search for "%s" in the whole site') % @query,
           :controller => 'search', :action => 'index', :category_path => [], :query => @query %>

<% end %>

<%
  pos2 = :odd  # allow to format in a two colons layout
  pos3 = 3     # allow to format in a thre colons layout
%>
<% @results.each do |name,results| %>
  <%
    pos3 += 1;  pos3 = 1 if pos3 > 3
    pos2==:odd ? pos2=:even : pos2=:odd
  %>
  <% if !results.nil? and !results.empty? %>
    <div class="search-results-<%= name %> search-results-box <%= pos2 %> <%= 'col%s_of3' % pos3.to_s %>">
      <% if @controller.action_name != 'assets' %>

<%= @names[name] %>

      <% end %>
      <% partial = partial_for_class results.first.class %>
      <div class="search-results-innerbox search-results-type-<%= partial %> <%= 'common-profile-list-block' if partial == 'profile' %>">

        <% results.each do |hit| %>
          <%= render :partial => partial, :object => hit %>
        <% end %>

  <% else %>
    <div class="search-results-<%= name %> search-results-empty search-results-box <%= pos2 %> <%= 'col%s_of3' % pos3.to_s %>">
      <% if @controller.action_name != 'assets' %>

<%= @names[name] %>

      <% end %>

 <%= _('None') %>

  <% end %>
<% end %>

<div id="search-results" class="<%= 'only-one-result-box' if @results.size == 1 %>">

<% if @category && !@query.blank? %>

<%= link_to _('Search for "%s" in the whole site') % @query,
           :controller => 'search', :action => 'index', :category_path => [], :query => @query %>

<% end %>

<%
  pos2 = :odd  # allow to format in a two colons layout
  pos3 = 3     # allow to format in a thre colons layout
%>
<% @results.sort_by { |name,results| @names[name] }.each do |name,results| %>
  <%
    pos3 += 1;  pos3 = 1 if pos3 > 3
    pos2==:odd ? pos2=:even : pos2=:odd
  %>
  <% if !results.nil? and !results.empty? %>
    <div class="search-results-<%= name %> search-results-box <%= pos2 %> <%= 'col%s_of3' % pos3.to_s %>">
      <% if @controller.action_name != 'assets' %>

<%= @names[name] %>

      <% end %>
      <% partial = partial_for_class results.first.class %>
      <div class="search-results-innerbox search-results-type-<%= partial %> <%= 'common-profile-list-block' if partial == 'profile' %>">

        <% results.each do |hit| %>
          <%= render :partial => partial, :object => hit %>
        <% end %>

  <% else %>
    <div class="search-results-<%= name %> search-results-empty search-results-box <%= pos2 %> <%= 'col%s_of3' % pos3.to_s %>">
      <% if @controller.action_name != 'assets' %>

<%= @names[name] %>

      <% end %>

 <%= _('None') %>

  <% end %>
<% end %>


small wording change

small wording change

<% if logged_in? %>

<% if @type.nil? || @type == "contacts" %>

<%= :my_contacts.t %>

<% if @contacts and @contacts.size > 0%>

      login
      name
      organization
      location
      last log-in

<%= render :partial => 'user', :collection => @contacts %>

<%= will_paginate @contacts, :params => {:action => :contacts} %>
<% else %>
<%= :no_contacts_msg.t %>
<% end %>

<% end %>

<% if @type.nil? || @type == "peers" %>

<%= :my_peers.t %> (<%= :my_peers_description.t %>)

<% if @peers and @peers.size > 0 %>

      login
      name
      organization
      location
      last log-in

<%= render :partial => 'user', :collection => @peers %>

<%= will_paginate @peers, :params => {:action => :peers} %>
<% else %>
<%=  :no_peers_msg.t %>
<% end %>

<% end %>

<% if @type.nil? || @type == "users" %>

<%= :all_people.t %>

      login
      name
      organization
      location
      last log-in

<%= render :partial => 'user', :collection => @users %>

<%= will_paginate @users, :params => {:action => :users} %>

<% end %>

<%= call_hook :bottom_people_list %>

<% else %>
<%= "No public profiles yet..."[:no_public_profiles] %>
<% end %>

<% if logged_in? %>

<% if @type.nil? || @type == "contacts" %>

<%= :my_contacts.t %>

<% if @contacts and @contacts.size > 0%>

      login
      name
      organization
      location
      last seen

<%= render :partial => 'user', :collection => @contacts %>

<%= will_paginate @contacts, :params => {:action => :contacts} %>
<% else %>
<%= :no_contacts_msg.t %>
<% end %>

<% end %>

<% if @type.nil? || @type == "peers" %>

<%= :my_peers.t %> (<%= :my_peers_description.t %>)

<% if @peers and @peers.size > 0 %>

      login
      name
      organization
      location
      last seen

<%= render :partial => 'user', :collection => @peers %>

<%= will_paginate @peers, :params => {:action => :peers} %>
<% else %>
<%=  :no_peers_msg.t %>
<% end %>

<% end %>

<% if @type.nil? || @type == "users" %>

<%= :all_people.t %>

      login
      name
      organization
      location
      last seen

<%= render :partial => 'user', :collection => @users %>

<%= will_paginate @users, :params => {:action => :users} %>

<% end %>

<%= call_hook :bottom_people_list %>

<% else %>
<%= "No public profiles yet..."[:no_public_profiles] %>
<% end %>