Permalink
Switch branches/tags
Nothing to show
Commits on Oct 23, 2017
  1. destroy all database handles on test tear down

    struan committed Oct 20, 2017
    otherwise we run out of database connections
  2. Styling for Facebook option on login page

    zarino authored and struan committed Oct 13, 2017
    Addition of the Facebook login button was a good opportunity
    to clean up the login page more generally.
  3. allow users to login/register using facebook

    struan committed Jun 23, 2017
    Add the option to use facebook login instead of email login. It'll use
    an existing email account if it exists otherwise it created a new user
    account. We don't send confirmation emails for FB login as we assume
    that the FB email is correct.
    
    Facebook logins use a different cookie to distinguish them from email
    logins and hence enable us to do the correct checks.
  4. add fb_id to users table

    struan committed Jun 23, 2017
    Add a column to the users table to store facebook user ids mostly as a
    way to indicate accounts that have been created using facebook login.
  5. add facebook SDK as a submodule

    struan committed Jun 23, 2017
    This will be used for facebook login work
Commits on Oct 11, 2017
  1. Video on homepage

    zarino committed Oct 11, 2017
    Fixes #1315.
Commits on Oct 10, 2017
  1. [Vagrant] Use correct user when creating database.

    dracos authored and zarino committed Jun 27, 2017
Commits on Sep 12, 2017
  1. Fix couple of Unicode issues.

    dracos committed Aug 18, 2017
    utf8_decode converts to iso-8859-1 so there is no reason we should be
    using it. Sinn Féin is correctly stored everywhere now.
Commits on Aug 10, 2017
  1. Use new parliament.uk images.

    dracos committed Aug 10, 2017
    We only use them at max 60px width at present.
Commits on Jul 19, 2017
  1. Photo update from admin web photo upload interface.

    Matthew Somerville
    Matthew Somerville committed Jul 19, 2017
Commits on Jul 17, 2017
  1. hide annotations section if there are no annotations

    struan committed Jul 17, 2017
    Becuase we're not allowing new annotations there's no point drawing
    attention to the annotations section on pages that don't already have an
    annotation so remove the 'No annotations' message. This doesn't remove
    the div so there's a stray row on individual entry pages at the moment.
    This is becuase the way the code is structured doesn't make it possible
    to determine in advance if there are any comments and this is just a
    quick fix.
    
    To make this work we'd need to extract the method that get the comments
    outside the code that displays them and then probably pass that directly
    to the template rather than the comment object.
Commits on Jul 12, 2017
  1. Re-remove mySociety header bar

    jacksonj04 committed Jul 12, 2017
    (See #7f4375d6a5fc16b2c8da1c1975d1928129089940)
  2. Remove short PHP opening tag

    jacksonj04 committed Jul 12, 2017
    Short opening tags are discouraged, and may not be enabled by default
Commits on Jul 11, 2017
  1. Photo update from admin web photo upload interface.

    Matthew Somerville
    Matthew Somerville committed Jul 11, 2017
Commits on Jul 3, 2017
  1. Update message shown on login page sidebar

    zarino authored and struan committed Jun 9, 2017
    Fixes #1261.
Commits on Jun 21, 2017
  1. fix bug that prevented unsetting all frontpage topics

    struan committed Jun 21, 2017
    if no topics were marked as being for the frontpage then the code fell
    over as it was trying to loop over an empty array.
Commits on Jun 13, 2017
Commits on Jun 12, 2017
  1. small fixes to script to alert about MP changes

    struan committed Jun 12, 2017
    Don't use dissolution date as it probably won't be set when the script
    is run, but add in last election date hard code for now.
    
    Initialise change_text() array.
    
    use left_house function and not array.
Commits on Jun 9, 2017
  1. Remove mySociety header

    zarino committed Jun 9, 2017
    We think people are clicking the mySociety logo in the header
    in an attempt to contact their MP (and thereby causing lots of
    erroneous emails to user support via the mysociety.org contact
    form). Removing the logo from the header should make the *real*
    path for contacting your MP more obvious.
    
    Fixes #1246.
Commits on Jun 3, 2017
  1. Change banner to link to DemocracyClub candidates.

    annapowellsmith authored and dracos committed Jun 2, 2017
    During the general election campaign, it would be awesome (and useful,
    hopefully) if the banner could link to Who Can I Vote For?
    
    This shows people their candidates in the general election, and where to
    vote.
Commits on May 16, 2017
  1. sentence case topic titles starting with The

    struan committed May 16, 2017
  2. fix layout of topic index if > 4 topics

    struan committed May 16, 2017
    And also if > 2 topics on narrow pages
Commits on May 15, 2017
  1. speed up very slow topic query

    struan committed May 15, 2017
    It turns out that doing a SELECT foo FROM bar WHERE id in (SELECT)
    fetches all the records in bar which is very slow for the epobjects
    table so do a much quicker join.
Commits on May 12, 2017
  1. use post to delete related content from topics

    struan committed May 10, 2017
  2. simplify topic page by calling topic directly

    struan committed May 10, 2017
    rather than create intermediate variables just pass the topic object
    directly to the template.
  3. avoid postcode lookups hitting mapit

    struan committed Apr 17, 2017
    Add postcode_lookup rows in fixtures for tests that do postcode lookupts
    so that:
      * tests run offline
      * we don't have problems with mapit quotas