Hi,
I found that in order to change static/scripts/mvc/data.js, I had to delete static/scripts/packed/mvc/data.js.
After doing so, I have added the following patch in order to add links inside tabular view.

else if (column_types[index] === 'str' || column_types === 'list') {
             /* Left align all str columns, right align the rest */
-            return $('<td>').addClass('stringalign').text(cell_contents);
+               var temp = $('<td>').addClass('stringalign').text(cell_contents);
+               var text = Linkify(temp.text());
+               return temp.html(text);
         }

I think this is better from the security aspect.
Now it looks like this:
chr147474796734088968.2326.21 http://genome.ucsc.edu/cgi-bin/hgTracks?db=m9&position=chr1:4747-4119
chr149984769194991695.9322.77http://genome.ucsc.edu/cgi-bin/hgTracks?db=m9&position=chr1:4798-4316

I hope this might be useful for others as well.
Hagai



On Mon, Mar 18, 2013 at 6:14 PM, Hagai Cohen <hagai26@gmail.com> wrote:
Hi,
I want to do this using a function which converts each URL into an html link ( after the .text() was called).
(For example to use: https://github.com/maranomynet/linkify).
But now the galaxy code is a bit different and I can't find where should I change the code.

I have found the _renderCell function here: static/scripts/mvc/data.js, but I didn't succeed in changing it to add links to the html.
What am I doing wrong?

Thanks,
Hagai



On Sun, Feb 3, 2013 at 1:06 PM, Hagai Cohen <hagai26@gmail.com> wrote:
Right.
I will convert it to text, allowing only simple links (<a> with href only) to be shown.
Thanks,
Hagai



On Wed, Jan 30, 2013 at 8:03 PM, James Taylor <james@jamestaylor.org> wrote:
You may want to be careful with this solution because it allows script
injection, any HTML including javascript in the uploaded tabular file
will be executed by the .html call, with complete access to everything
in the Galaxy browser window (like your session cookies).

--
James Taylor, Assistant Professor, Biology/CS, Emory University


On Tue, Jan 29, 2013 at 7:18 AM, Hagai Cohen <hagai26@gmail.com> wrote:
> Hi,
> I found a simple solution.
>
> In the file:
> templates/dataset/tabular_chunked.mako
> inside the method: renderCell - replace all jQuery .text(..) calls with
> .html(..) calls.
>
> Note:
> Any entry in the csv with html syntax will be shown like html (links, tags.
> etc).
>
>
>
>
>
>
> On Tue, Jan 29, 2013 at 1:39 PM, Hagai Cohen <hagai26@gmail.com> wrote:
>>
>> Hi,
>> I have a tool which outputs a csv file with links.
>> When I press the eye icon - I would like these links to be shown as links
>> in the browser.
>> It is possible?
>>
>> Thanks,
>> Hagai
>
>
>
> ___________________________________________________________
> Please keep all replies on the list by using "reply all"
> in your mail client.  To manage your subscriptions to this
> and other Galaxy lists, please use the interface at:
>
>   http://lists.bx.psu.edu/