Ticket #1100: 0001-Add-a-Try-it-link-to-the-front-page.patch

File 0001-Add-a-Try-it-link-to-the-front-page.patch, 1.9 KB (added by Asheesh Laroia, 10 years ago)
  • theme/templates/index.html

    From 2cca544433e9916dc3be97f26a80f9e83cd3a0ac Mon Sep 17 00:00:00 2001
    From: Asheesh Laroia <asheesh@asheesh.org>
    Date: Tue, 27 Jan 2015 17:26:43 -0800
    Subject: [PATCH] Add a "Try it" link to the front page
    
    With this change, visitors to the MediaGoblin site can try a live
    instance.
    
    For context, the demo is hosted on a demo server run by Sandstorm
    Development Group, which runs the FLOSS Sandstorm software. The path
    component in the URL is the app ID, so when new versions are uploaded
    to that server, this link will automatically update to install those
    new versions.
    
    The Sandstorm "port" of MediaGoblin has the source code available for
    its fork here: https://github.com/jparyani/mediagoblin/ and links to
    it in the footer, as a general good practice and also as a way of
    complying with the AGPLv3.
    
    It uses target=_blank because, in my manual testing, after clicking
    this link and playing with the MediaGoblin demo, the default thing to
    do is to close the tab/window. It would be nice if the MediaGoblin
    website were still waiting for me so I could be reminded that I tried
    the demo to convince myself that I want to actually install
    MediaGoblin.
    ---
     theme/templates/index.html | 6 +++++-
     1 file changed, 5 insertions(+), 1 deletion(-)
    
    diff --git a/theme/templates/index.html b/theme/templates/index.html
    index d91556b..cb22de4 100644
    a b  
    4444<div class="grid_5">
    4545  <h2>Use it</h2>
    4646  <p>Get started using Mediagoblin with an existing community.</p>
    47   <p><a href="https://wiki.mediagoblin.org/Live_instances">Find sites already running MediaGoblin</a>.</p>
     47  <p><a href="https://wiki.mediagoblin.org/Live_instances">Find sites already running MediaGoblin</a>, or
     48  <a target="_blank"
     49  href="https://demo.sandstorm.io/appdemo/70awyqss6jq2gkz7dwzsnvumzr07256pzdt3hda9acfuxwh6uh7h">try
     50  a demo right now</a>.</p>
     51
    4852</div>
    4953
    5054<div class="grid_1 connector">